summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2016-07-28 16:07:59 +0200
committerOliver Kiddle <opk@zsh.org>2016-07-28 16:07:59 +0200
commit7830a8c498730cd08dad27d4d6ec9722f9cd637a (patch)
treeaac4ed120049bbdc3f5fa5ee211616c5ec603760
parent26361e438b41862f5495ae263bc004cfffbd6b44 (diff)
downloadzsh-7830a8c498730cd08dad27d4d6ec9722f9cd637a.tar.gz
zsh-7830a8c498730cd08dad27d4d6ec9722f9cd637a.tar.xz
zsh-7830a8c498730cd08dad27d4d6ec9722f9cd637a.zip
unposted: fix vi-pipe for visual mode: don't need to force line mode
-rw-r--r--ChangeLog4
-rw-r--r--Functions/Zle/vi-pipe2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 03a2e29fe..4c208cbcf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-07-28  Oliver Kiddle  <opk@zsh.org>
+
+	* unposted: Functions/Zle/vi-pipe: fix for visual mode
+
 2016-07-28  Peter Stephenson  <p.stephenson@samsung.com>
 
 	* 38953: Doc/Zsh/contrib.yo,
diff --git a/Functions/Zle/vi-pipe b/Functions/Zle/vi-pipe
index 028f1e1ce..c32e64a59 100644
--- a/Functions/Zle/vi-pipe
+++ b/Functions/Zle/vi-pipe
@@ -13,7 +13,7 @@ autoload -Uz read-from-minibuffer
 local _save_cut="$CUTBUFFER" REPLY
 
 # force movement to default to line mode
-zle -U V
+(( REGION_ACTIVE )) || zle -U V
 # Use the standard vi-change to accept a vi motion.
 zle .vi-change || return
 read-from-minibuffer "!"