about summary refs log tree commit diff
path: root/Src/Zle/zle_vi.c
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2014-11-17 23:00:49 +0100
committerOliver Kiddle <opk@zsh.org>2014-11-17 23:01:00 +0100
commitd29e02c1a30c136cbd8847a4dc4628da90566716 (patch)
tree43ef4b01948762fd7d7fb4c50d5faa9962f59738 /Src/Zle/zle_vi.c
parent36878852efc1673aba445e7affe9c5c554c343d5 (diff)
downloadzsh-d29e02c1a30c136cbd8847a4dc4628da90566716.tar.gz
zsh-d29e02c1a30c136cbd8847a4dc4628da90566716.tar.xz
zsh-d29e02c1a30c136cbd8847a4dc4628da90566716.zip
33704: keybindings, documentation, tests and minor
fixes for vim style visual selection changes
Diffstat (limited to 'Src/Zle/zle_vi.c')
-rw-r--r--Src/Zle/zle_vi.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/Src/Zle/zle_vi.c b/Src/Zle/zle_vi.c
index 3a4304ced..84cba7759 100644
--- a/Src/Zle/zle_vi.c
+++ b/Src/Zle/zle_vi.c
@@ -258,7 +258,7 @@ getvirange(int wf)
 	pos = tmp;
     }
 
-    if (visual && invicmdmode())
+    if (visual == 1 && invicmdmode())
 	INCPOS(pos);
 
     /* Was it a line-oriented move?  If so, the command will have set *
@@ -389,9 +389,6 @@ videletechar(char **args)
 
     startvichange(-1);
 
-    if (region_active)
-	return killregion(args);
-
     /* handle negative argument */
     if (n < 0) {
 	int ret;
@@ -804,9 +801,6 @@ vibackwarddeletechar(char **args)
     if (invicmdmode())
 	startvichange(-1);
 
-    if (region_active)
-	return killregion(args);
-
     /* handle negative argument */
     if (n < 0) {
 	int ret;