From 4dfd30d661f92f3075b6c312c86d69661db18812 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Tue, 29 Nov 2016 19:24:21 -0500 Subject: [PATCH] Added logic to allow extending the selection to the right with arrow keys --- .gitignore | 1 + xedit.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9b5f6dc..51995e0 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,4 @@ tags *.gcda *.gcov xedit +xpick diff --git a/xedit.c b/xedit.c index ad998ae..6f402e5 100644 --- a/xedit.c +++ b/xedit.c @@ -389,7 +389,8 @@ static void cursor_left(void) { } static void cursor_right(void) { - view_byrune(currview(), +1, false); + bool extsel = x11_keymodsset(ModShift); + view_byrune(currview(), +1, true); } static void page_up(void) { -- 2.51.0