mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Freeze output when showing display line, fixes problems when no status line.
This commit is contained in:
		
							
								
								
									
										8
									
								
								server.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								server.c
									
									
									
									
									
								
							| @@ -1,4 +1,4 @@ | ||||
| /* $Id: server.c,v 1.72 2008-06-19 23:24:40 nicm Exp $ */ | ||||
| /* $Id: server.c,v 1.73 2008-06-20 06:36:01 nicm Exp $ */ | ||||
|  | ||||
| /* | ||||
|  * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> | ||||
| @@ -304,11 +304,15 @@ server_check_redraw(struct client *c) | ||||
| 	struct screen			screen; | ||||
| 	u_int				xx, yy, sx, sy; | ||||
| 	char			        title[BUFSIZ]; | ||||
| 	int				flags; | ||||
|  | ||||
| 	if (c == NULL || c->session == NULL) | ||||
| 		return; | ||||
| 	s = c->session; | ||||
|  | ||||
| 	flags = c->tty.flags & TTY_FREEZE; | ||||
| 	c->tty.flags &= ~TTY_FREEZE; | ||||
|  | ||||
| 	if (options_get_number(&s->options, "set-titles")) { | ||||
| 		xsnprintf(title, sizeof title, | ||||
| 		    "%s:%u:%s - \"%s\"", s->name, s->curw->idx, | ||||
| @@ -363,6 +367,8 @@ server_check_redraw(struct client *c) | ||||
| 			status_redraw(c); | ||||
| 	} | ||||
|  | ||||
| 	c->tty.flags |= flags; | ||||
|  | ||||
| 	c->flags &= ~(CLIENT_REDRAW|CLIENT_STATUS); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Nicholas Marriott
					Nicholas Marriott