diff options
author | 2012-01-21 06:13:16 +0000 | |
---|---|---|
committer | 2012-01-21 06:13:16 +0000 | |
commit | 009b54b87994bd94ce78594019b077a8eb3b47ec (patch) | |
tree | b46d1b39a254920532f53efee33ea27446de86a5 /usr.bin/tmux/cmd-attach-session.c | |
parent | Ansify ppp... function definitions. (diff) | |
download | wireguard-openbsd-009b54b87994bd94ce78594019b077a8eb3b47ec.tar.xz wireguard-openbsd-009b54b87994bd94ce78594019b077a8eb3b47ec.zip |
Only hide flags on the current window when the session is attached, from
Roland Walker.
Diffstat (limited to 'usr.bin/tmux/cmd-attach-session.c')
-rw-r--r-- | usr.bin/tmux/cmd-attach-session.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-attach-session.c b/usr.bin/tmux/cmd-attach-session.c index d81805bbc68..00715f7fa30 100644 --- a/usr.bin/tmux/cmd-attach-session.c +++ b/usr.bin/tmux/cmd-attach-session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-attach-session.c,v 1.16 2011/04/05 19:37:01 nicm Exp $ */ +/* $OpenBSD: cmd-attach-session.c,v 1.17 2012/01/21 06:13:16 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -76,6 +76,7 @@ cmd_attach_session_exec(struct cmd *self, struct cmd_ctx *ctx) ctx->curclient->session = s; session_update_activity(s); server_redraw_client(ctx->curclient); + s->curw->flags &= ~WINLINK_ALERTFLAGS; } else { if (!(ctx->cmdclient->flags & CLIENT_TERMINAL)) { ctx->error(ctx, "not a terminal"); @@ -104,6 +105,7 @@ cmd_attach_session_exec(struct cmd *self, struct cmd_ctx *ctx) environ_update(update, &ctx->cmdclient->environ, &s->environ); server_redraw_client(ctx->cmdclient); + s->curw->flags &= ~WINLINK_ALERTFLAGS; } recalculate_sizes(); server_update_socket(); |