mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Check if a pane needs to be paused when output is written rather than
just when it is queued.
This commit is contained in:
		@@ -569,6 +569,13 @@ control_write_pending(struct client *c, struct control_pane *cp, size_t limit)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	while (used != limit && !TAILQ_EMPTY(&cp->blocks)) {
 | 
			
		||||
		if (control_check_age(c, wp, cp)) {
 | 
			
		||||
			if (message != NULL)
 | 
			
		||||
				evbuffer_free(message);
 | 
			
		||||
			message = NULL;
 | 
			
		||||
			break;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		cb = TAILQ_FIRST(&cp->blocks);
 | 
			
		||||
		if (cb->t < t)
 | 
			
		||||
			age = t - cb->t;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user