diff options
author | nicm <nicm> | 2020-03-20 17:59:39 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-03-20 17:59:39 +0000 |
commit | 06c3079d66929e0c71575e877098fc533ae5f4a5 (patch) | |
tree | 4efb7382f9e45340b24e10b765b18f4f604a8508 /cmd-copy-mode.c | |
parent | 7bbca4939537bcb12d9488cbd0e88fb8bbb5dbc3 (diff) | |
download | rtmux-06c3079d66929e0c71575e877098fc533ae5f4a5.tar.gz rtmux-06c3079d66929e0c71575e877098fc533ae5f4a5.tar.bz2 rtmux-06c3079d66929e0c71575e877098fc533ae5f4a5.zip |
Make the mouse_word and mouse_line formats work in copy mode and enable
the default pane menu in copy mode.
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 9c0015bf..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 = { "eHMt:u", 0, 0 }, - .usage = "[-eHMu] " 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); |