diff options
author | nicm <nicm> | 2014-08-11 22:18:16 +0000 |
---|---|---|
committer | nicm <nicm> | 2014-08-11 22:18:16 +0000 |
commit | 29d20a55b645600feca1b54a13333e598336dad2 (patch) | |
tree | ea4fb9fdc5ebf7c6f7ba1899f203575668856e51 /window-copy.c | |
parent | f518a077b176e65a30a187af21b00b0b9031dad7 (diff) | |
download | rtmux-29d20a55b645600feca1b54a13333e598336dad2.tar.gz rtmux-29d20a55b645600feca1b54a13333e598336dad2.tar.bz2 rtmux-29d20a55b645600feca1b54a13333e598336dad2.zip |
Fix two copy mode problems:
1. In vi mode the selection doesn't include the last character if you
moved the cursor up or left.
2. In emacs mode the selection includes the last character if you moved
the cursor to the left.
From Balazs Kezes.
Diffstat (limited to 'window-copy.c')
-rw-r--r-- | window-copy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/window-copy.c b/window-copy.c index 17f9751b..24f94121 100644 --- a/window-copy.c +++ b/window-copy.c @@ -199,6 +199,7 @@ window_copy_init(struct window_pane *wp) mode_key_init(&data->mdata, &mode_key_tree_emacs_copy); else mode_key_init(&data->mdata, &mode_key_tree_vi_copy); + s->sel.modekeys = keys; data->backing = NULL; |