mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Send errors to stdout in control mode so they don't get reordered with
other output, reported by George Nachman in GitHub issue 2048.
This commit is contained in:
		@@ -551,6 +551,9 @@ cmdq_error(struct cmdq_item *item, const char *fmt, ...)
 | 
			
		||||
			msg = utf8_sanitize(tmp);
 | 
			
		||||
			free(tmp);
 | 
			
		||||
		}
 | 
			
		||||
		if (c->flags & CLIENT_CONTROL)
 | 
			
		||||
			file_print(c, "%s\n", msg);
 | 
			
		||||
		else
 | 
			
		||||
			file_error(c, "%s\n", msg);
 | 
			
		||||
		c->retval = 1;
 | 
			
		||||
	} else {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user