diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-06 16:09:49 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-06 16:09:49 +0100 |
commit | a4e19bcd8020f655f613604361d0f30384edbdc0 (patch) | |
tree | 0db57652b6c4c260ed7dc300b687b9284d1853e3 /cmd-copy-mode.c | |
parent | bc36b473f1d33f92bb70e5bd68d31924b59be70c (diff) | |
download | rtmux-a4e19bcd8020f655f613604361d0f30384edbdc0.tar.gz rtmux-a4e19bcd8020f655f613604361d0f30384edbdc0.tar.bz2 rtmux-a4e19bcd8020f655f613604361d0f30384edbdc0.zip |
Various fixes for copy mode from master.
Diffstat (limited to 'cmd-copy-mode.c')
-rw-r--r-- | cmd-copy-mode.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cmd-copy-mode.c b/cmd-copy-mode.c index b35d0af1..bdb8245e 100644 --- a/cmd-copy-mode.c +++ b/cmd-copy-mode.c @@ -30,8 +30,8 @@ const struct cmd_entry cmd_copy_mode_entry = { .name = "copy-mode", .alias = NULL, - .args = { "Met:u", 0, 0 }, - .usage = "[-Mu] " CMD_TARGET_PANE_USAGE, + .args = { "eHMt:uq", 0, 0 }, + .usage = "[-eHMuq] " CMD_TARGET_PANE_USAGE, .target = { 't', CMD_FIND_PANE, 0 }, @@ -61,6 +61,11 @@ cmd_copy_mode_exec(struct cmd *self, struct cmdq_item *item) struct session *s; struct window_pane *wp = item->target.wp; + if (args_has(args, 'q')) { + window_pane_reset_mode_all(wp); + return (CMD_RETURN_NORMAL); + } + if (args_has(args, 'M')) { if ((wp = cmd_mouse_pane(&shared->mouse, &s, NULL)) == NULL) return (CMD_RETURN_NORMAL); |