diff options
author | nicm <nicm> | 2019-03-12 11:16:49 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-03-12 11:16:49 +0000 |
commit | 3f6bfbaf2babcc7f08f628a82ff31b0b52014e58 (patch) | |
tree | ce4bf0c954cdfede0c2e86905bd85a9f565ed370 /cmd-capture-pane.c | |
parent | ff4c80d53df96bb46eaa64107673e42d402f0d49 (diff) | |
download | rtmux-3f6bfbaf2babcc7f08f628a82ff31b0b52014e58.tar.gz rtmux-3f6bfbaf2babcc7f08f628a82ff31b0b52014e58.tar.bz2 rtmux-3f6bfbaf2babcc7f08f628a82ff31b0b52014e58.zip |
Allow multiple modes to be open in a pane. A stack of open modes is kept
and the previous restored when the top is exited. If a mode that is
already on the stack is entered, the existing instance is moved to the
top as the active mode rather than being opened new.
Diffstat (limited to 'cmd-capture-pane.c')
-rw-r--r-- | cmd-capture-pane.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd-capture-pane.c b/cmd-capture-pane.c index cb01f502..dd1576c4 100644 --- a/cmd-capture-pane.c +++ b/cmd-capture-pane.c @@ -199,8 +199,7 @@ cmd_capture_pane_exec(struct cmd *self, struct cmdq_item *item) size_t len; if (self->entry == &cmd_clear_history_entry) { - if (wp->mode != NULL && wp->mode->mode == &window_copy_mode) - window_pane_reset_mode(wp); + window_pane_reset_mode_all(wp); grid_clear_history(wp->base.grid); return (CMD_RETURN_NORMAL); } |