diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2021-02-04 14:02:25 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2021-02-04 14:02:25 +0000 |
commit | 0776051862f3820a02ef8a1478d785f07b3e8445 (patch) | |
tree | ba418fbb419d855a1550bd4f2bfd566e2889bcb7 /usr.bin | |
parent | a5afc24072fad9c75013a90b58263b12aef9ae98 (diff) |
Redraw status line and borders on pane enable/disable, GitHub issue 2554.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/cmd-select-pane.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-select-pane.c b/usr.bin/tmux/cmd-select-pane.c index 3d4c8260c2e..11dee6cf490 100644 --- a/usr.bin/tmux/cmd-select-pane.c +++ b/usr.bin/tmux/cmd-select-pane.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-select-pane.c,v 1.64 2020/07/24 07:05:37 nicm Exp $ */ +/* $OpenBSD: cmd-select-pane.c,v 1.65 2021/02/04 14:02:24 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -108,11 +108,15 @@ cmd_select_pane_exec(struct cmd *self, struct cmdq_item *item) cmdq_error(item, "no last pane"); return (CMD_RETURN_ERROR); } - if (args_has(args, 'e')) + if (args_has(args, 'e')) { lastwp->flags &= ~PANE_INPUTOFF; - else if (args_has(args, 'd')) + server_redraw_window_borders(lastwp->window); + server_status_window(lastwp->window); + } else if (args_has(args, 'd')) { lastwp->flags |= PANE_INPUTOFF; - else { + server_redraw_window_borders(lastwp->window); + server_status_window(lastwp->window); + } else { if (window_push_zoom(w, args_has(args, 'Z'))) server_redraw_window(w); window_redraw_active_switch(w, lastwp); @@ -188,10 +192,14 @@ cmd_select_pane_exec(struct cmd *self, struct cmdq_item *item) if (args_has(args, 'e')) { wp->flags &= ~PANE_INPUTOFF; + server_redraw_window_borders(wp->window); + server_status_window(wp->window); return (CMD_RETURN_NORMAL); } if (args_has(args, 'd')) { wp->flags |= PANE_INPUTOFF; + server_redraw_window_borders(wp->window); + server_status_window(wp->window); return (CMD_RETURN_NORMAL); } |