mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Use the same logic for bell with and without visual-bell, from Filip
Moc.
This commit is contained in:
		@@ -85,9 +85,10 @@ server_window_check_bell(struct session *s, struct winlink *wl)
 | 
			
		||||
		return (0);
 | 
			
		||||
	for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
 | 
			
		||||
		c = ARRAY_ITEM(&clients, i);
 | 
			
		||||
		if (c == NULL || c->session != s || (c->flags & CLIENT_CONTROL))
 | 
			
		||||
		if (c == NULL || c->session != s || c->flags & CLIENT_CONTROL)
 | 
			
		||||
			continue;
 | 
			
		||||
		if (!visual) {
 | 
			
		||||
			if (c->session->curw->window == w || action == BELL_ANY)
 | 
			
		||||
				tty_bell(&c->tty);
 | 
			
		||||
			continue;
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user