summaryrefslogtreecommitdiffstats
path: root/window-copy.c
diff options
context:
space:
mode:
authornicm <nicm>2014-08-11 22:18:16 +0000
committernicm <nicm>2014-08-11 22:18:16 +0000
commit29d20a55b645600feca1b54a13333e598336dad2 (patch)
treeea4fb9fdc5ebf7c6f7ba1899f203575668856e51 /window-copy.c
parentf518a077b176e65a30a187af21b00b0b9031dad7 (diff)
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.c1
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;