summaryrefslogtreecommitdiffstats
path: root/session.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-07-08 07:27:32 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-07-08 07:27:32 +0000
commit63f5c38023439e23365b18581eb32f530c66a2d9 (patch)
treec0edcb2175cac3a4718b51870b3d07b98770a3b4 /session.c
parent67b926cf3c77737e3b40c9d70c38314ac19ba105 (diff)
Clear flags across all sessions, from Thomas Adam.
Diffstat (limited to 'session.c')
-rw-r--r--session.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/session.c b/session.c
index b3f03541..75ea8b0c 100644
--- a/session.c
+++ b/session.c
@@ -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);
}