mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Use :: for escaping : in terminal-overrides not \:.
This commit is contained in:
		
							
								
								
									
										11
									
								
								tty-term.c
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								tty-term.c
									
									
									
									
									
								
							@@ -312,10 +312,13 @@ tty_term_override_next(const char *s, size_t *offset)
 | 
				
			|||||||
	if (s[at] == '\0')
 | 
						if (s[at] == '\0')
 | 
				
			||||||
		return (NULL);
 | 
							return (NULL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	while (s[at] != '\0' && s[at] != ':') {
 | 
						while (s[at] != '\0') {
 | 
				
			||||||
		if (s[at] == '\\' && s[at + 1] == ':') {
 | 
							if (s[at] == ':') {
 | 
				
			||||||
			value[n++] = ':';
 | 
								if (s[at + 1] == ':') {
 | 
				
			||||||
			at += 2;
 | 
									value[n++] = ':';
 | 
				
			||||||
 | 
									at += 2;
 | 
				
			||||||
 | 
								} else
 | 
				
			||||||
 | 
									break;
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			value[n++] = s[at];
 | 
								value[n++] = s[at];
 | 
				
			||||||
			at++;
 | 
								at++;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user