mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Sync OpenBSD patchset 1144:
Clear flags across all sessions, from Thomas Adam.
This commit is contained in:
		@@ -352,7 +352,7 @@ session_next(struct session *s, int alert)
 | 
			
		||||
	winlink_stack_remove(&s->lastw, wl);
 | 
			
		||||
	winlink_stack_push(&s->lastw, s->curw);
 | 
			
		||||
	s->curw = wl;
 | 
			
		||||
	wl->flags &= ~WINLINK_ALERTFLAGS;
 | 
			
		||||
	winlink_clear_flags(wl);
 | 
			
		||||
	return (0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -389,7 +389,7 @@ session_previous(struct session *s, int alert)
 | 
			
		||||
	winlink_stack_remove(&s->lastw, wl);
 | 
			
		||||
	winlink_stack_push(&s->lastw, s->curw);
 | 
			
		||||
	s->curw = wl;
 | 
			
		||||
	wl->flags &= ~WINLINK_ALERTFLAGS;
 | 
			
		||||
	winlink_clear_flags(wl);
 | 
			
		||||
	return (0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -407,7 +407,7 @@ session_select(struct session *s, int idx)
 | 
			
		||||
	winlink_stack_remove(&s->lastw, wl);
 | 
			
		||||
	winlink_stack_push(&s->lastw, s->curw);
 | 
			
		||||
	s->curw = wl;
 | 
			
		||||
	wl->flags &= ~WINLINK_ALERTFLAGS;
 | 
			
		||||
	winlink_clear_flags(wl);
 | 
			
		||||
	return (0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -426,7 +426,7 @@ session_last(struct session *s)
 | 
			
		||||
	winlink_stack_remove(&s->lastw, wl);
 | 
			
		||||
	winlink_stack_push(&s->lastw, s->curw);
 | 
			
		||||
	s->curw = wl;
 | 
			
		||||
	wl->flags &= ~WINLINK_ALERTFLAGS;
 | 
			
		||||
	winlink_clear_flags(wl);
 | 
			
		||||
	return (0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user