mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last
time now I've configured emacs to make them displayed in really annoying colours...
This commit is contained in:
		
							
								
								
									
										10
									
								
								tty-term.c
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								tty-term.c
									
									
									
									
									
								
							@@ -227,7 +227,7 @@ tty_term_override(struct tty_term *term, const char *overrides)
 | 
			
		||||
	termnext = s;
 | 
			
		||||
	while ((termstr = strsep(&termnext, ",")) != NULL) {
 | 
			
		||||
		entnext = termstr;
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
		entstr = strsep(&entnext, ":");
 | 
			
		||||
		if (entstr == NULL || entnext == NULL)
 | 
			
		||||
			continue;
 | 
			
		||||
@@ -239,7 +239,7 @@ tty_term_override(struct tty_term *term, const char *overrides)
 | 
			
		||||
 | 
			
		||||
			val = NULL;
 | 
			
		||||
			removeflag = 0;
 | 
			
		||||
 			if ((ptr = strchr(entstr, '=')) != NULL) {
 | 
			
		||||
			if ((ptr = strchr(entstr, '=')) != NULL) {
 | 
			
		||||
				*ptr++ = '\0';
 | 
			
		||||
				val = xstrdup(ptr);
 | 
			
		||||
				if (strunvis(val, ptr) == -1) {
 | 
			
		||||
@@ -321,10 +321,12 @@ tty_term_find(char *name, int fd, const char *overrides, char **cause)
 | 
			
		||||
	if (setupterm(name, fd, &error) != OK) {
 | 
			
		||||
		switch (error) {
 | 
			
		||||
		case 1:
 | 
			
		||||
			xasprintf(cause, "can't use hardcopy terminal: %s", name);
 | 
			
		||||
			xasprintf(
 | 
			
		||||
			    cause, "can't use hardcopy terminal: %s", name);
 | 
			
		||||
			break;
 | 
			
		||||
		case 0:
 | 
			
		||||
			xasprintf(cause, "missing or unsuitable terminal: %s", name);
 | 
			
		||||
			xasprintf(
 | 
			
		||||
			    cause, "missing or unsuitable terminal: %s", name);
 | 
			
		||||
			break;
 | 
			
		||||
		case -1:
 | 
			
		||||
			xasprintf(cause, "can't find terminfo database");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user