diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-07-08 07:27:33 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-07-08 07:27:33 +0000 |
commit | 00fa172f244cb12526ff4cd2043c96f02fafb458 (patch) | |
tree | 20734e3c262eec80308de9f739552cdf0e967371 /usr.bin/tmux/session.c | |
parent | 16d480615a003a0cc0d839fe9c7927732038f89c (diff) |
Clear flags across all sessions, from Thomas Adam.
Diffstat (limited to 'usr.bin/tmux/session.c')
-rw-r--r-- | usr.bin/tmux/session.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/tmux/session.c b/usr.bin/tmux/session.c index e4882e35dcf..b458c399a84 100644 --- a/usr.bin/tmux/session.c +++ b/usr.bin/tmux/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.34 2012/04/29 17:20:01 nicm Exp $ */ +/* $OpenBSD: session.c,v 1.35 2012/07/08 07:27:32 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -353,7 +353,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); } @@ -390,7 +390,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); } @@ -408,7 +408,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); } @@ -427,7 +427,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); } |