aboutsummaryrefslogtreecommitdiff
path: root/cmd-copy-mode.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-05-07 13:02:27 +0100
committerThomas Adam <thomas@xteddy.org>2019-05-07 13:02:27 +0100
commitd9767b81123cc8913c63c42cc754cccbf34ccb6c (patch)
tree94e0a8cdb822db6145080c02907ad626c0d0fa89 /cmd-copy-mode.c
parenteac30a86d78879f2dec802b0d246eba0afa79b3e (diff)
parent85a9c2f52b8855560fa9fdaa033d1c7bca738429 (diff)
downloadrtmux-d9767b81123cc8913c63c42cc754cccbf34ccb6c.tar.gz
rtmux-d9767b81123cc8913c63c42cc754cccbf34ccb6c.tar.bz2
rtmux-d9767b81123cc8913c63c42cc754cccbf34ccb6c.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-copy-mode.c')
-rw-r--r--cmd-copy-mode.c8
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);