mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Revert previous, there is still a problem.
This commit is contained in:
		
							
								
								
									
										16
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								tty.c
									
									
									
									
									
								
							@@ -1438,19 +1438,15 @@ tty_draw_line(struct tty *tty, struct window_pane *wp, struct screen *s,
 | 
			
		||||
void
 | 
			
		||||
tty_sync_start(struct tty *tty)
 | 
			
		||||
{
 | 
			
		||||
	if ((~tty->flags & TTY_SYNCING) && (tty_get_flags(tty) & TERM_SYNC)) {
 | 
			
		||||
	if (tty_get_flags(tty) & TERM_SYNC)
 | 
			
		||||
		tty_puts(tty, "\033P=1s\033\\");
 | 
			
		||||
		tty->flags |= TTY_SYNCING;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
tty_sync_end(struct tty *tty)
 | 
			
		||||
{
 | 
			
		||||
	if (tty_get_flags(tty) & TERM_SYNC) {
 | 
			
		||||
	if (tty_get_flags(tty) & TERM_SYNC)
 | 
			
		||||
		tty_puts(tty, "\033P=2s\033\\");
 | 
			
		||||
		tty->flags &= ~TTY_SYNCING;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int
 | 
			
		||||
@@ -1484,14 +1480,6 @@ tty_write(void (*cmdfn)(struct tty *, const struct tty_ctx *),
 | 
			
		||||
	TAILQ_FOREACH(c, &clients, entry) {
 | 
			
		||||
		if (!tty_client_ready(c, wp))
 | 
			
		||||
			continue;
 | 
			
		||||
		if (c->flags & CLIENT_REDRAWPANES) {
 | 
			
		||||
			/*
 | 
			
		||||
			 * Redraw is already deferred to redraw another pane -
 | 
			
		||||
			 * redraw this one also when that happens.
 | 
			
		||||
			 */
 | 
			
		||||
			wp->flags |= PANE_REDRAW;
 | 
			
		||||
			break;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		ctx->bigger = tty_window_offset(&c->tty, &ctx->ox, &ctx->oy,
 | 
			
		||||
		    &ctx->sx, &ctx->sy);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user