diff options
author | nicm <nicm> | 2019-05-07 11:24:03 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-05-07 11:24:03 +0000 |
commit | 85a9c2f52b8855560fa9fdaa033d1c7bca738429 (patch) | |
tree | b1e0274124ba02ba6cb5c368bbcd09394e782405 /cmd-copy-mode.c | |
parent | 69440d19b783c72139f22c5c72b34b55d99e71de (diff) | |
download | rtmux-85a9c2f52b8855560fa9fdaa033d1c7bca738429.tar.gz rtmux-85a9c2f52b8855560fa9fdaa033d1c7bca738429.tar.bz2 rtmux-85a9c2f52b8855560fa9fdaa033d1c7bca738429.zip |
Treat keys in identify mode (display-panes) specially and handle them
immediately rather than queuing them (the command can block the queue
which means they were not being seen until it finished which was too
late). Reported by denis@ and solene@, ok solene@.
Diffstat (limited to 'cmd-copy-mode.c')
-rw-r--r-- | cmd-copy-mode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd-copy-mode.c b/cmd-copy-mode.c index bd05f8a2..b35d0af1 100644 --- a/cmd-copy-mode.c +++ b/cmd-copy-mode.c @@ -73,10 +73,10 @@ cmd_copy_mode_exec(struct cmd *self, struct cmdq_item *item) return (CMD_RETURN_NORMAL); } - if (window_pane_set_mode(wp, &window_copy_mode, NULL, args) != 0) - return (CMD_RETURN_NORMAL); - if (args_has(args, 'M')) - window_copy_start_drag(c, &shared->mouse); + if (!window_pane_set_mode(wp, &window_copy_mode, NULL, args)) { + if (args_has(args, 'M')) + window_copy_start_drag(c, &shared->mouse); + } if (args_has(self->args, 'u')) window_copy_pageup(wp, 0); |