mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Fix BELL_NONE which had been broken in some code reorganisation or other
also don't redraw unnecessarily. From Seiji Ohashi.
This commit is contained in:
		@@ -75,12 +75,14 @@ server_window_check_bell(struct session *s, struct winlink *wl)
 | 
			
		||||
	if (s->curw != wl || s->flags & SESSION_UNATTACHED)
 | 
			
		||||
		wl->flags |= WINLINK_BELL;
 | 
			
		||||
	if (s->flags & SESSION_UNATTACHED)
 | 
			
		||||
		return (1);
 | 
			
		||||
		return (0);
 | 
			
		||||
	if (s->curw->window == wl->window)
 | 
			
		||||
		w->flags &= ~WINDOW_BELL;
 | 
			
		||||
 | 
			
		||||
	visual = options_get_number(&s->options, "visual-bell");
 | 
			
		||||
	action = options_get_number(&s->options, "bell-action");
 | 
			
		||||
	if (action == BELL_NONE)
 | 
			
		||||
		return (0);
 | 
			
		||||
	for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
 | 
			
		||||
		c = ARRAY_ITEM(&clients, i);
 | 
			
		||||
		if (c == NULL || c->session != s)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user