]> git.mdlowis.com Git - projs/tide.git/commitdiff
Added logic to allow extending the selection to the right with arrow keys
authorMichael D. Lowis <mike@mdlowis.com>
Wed, 30 Nov 2016 00:24:21 +0000 (19:24 -0500)
committerMichael D. Lowis <mike@mdlowis.com>
Wed, 30 Nov 2016 00:24:21 +0000 (19:24 -0500)
.gitignore
xedit.c

index 9b5f6dc2da27ab55880c7bc3c1f0ae6fc1ad9702..51995e0a3cf304c56e846d559eef79129158c80d 100644 (file)
@@ -39,3 +39,4 @@ tags
 *.gcda
 *.gcov
 xedit
+xpick
diff --git a/xedit.c b/xedit.c
index ad998ae6564958ddf0ff8085c06222125d1de16e..6f402e5082aa6e761096bdb3e84d08938e5ae6fe 100644 (file)
--- 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) {