summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2011-05-12 15:55:12 +0000
committerMikael Magnusson <mikachu@gmail.com>2011-05-12 15:55:12 +0000
commit1ac8412d6faf8d1d631a8cb366ca69aef97405bf (patch)
tree6f97e75a01f89d3e664fa6a81c7bad2188c6af56 /Src/Zle
parent3b4fcfe79708a4901a7d768cef72b5fbcdf31cd1 (diff)
downloadzsh-1ac8412d6faf8d1d631a8cb366ca69aef97405bf.tar.gz
zsh-1ac8412d6faf8d1d631a8cb366ca69aef97405bf.tar.xz
zsh-1ac8412d6faf8d1d631a8cb366ca69aef97405bf.zip
29208: make vimatchbracket more useful in emacs mode
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/zle_move.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/Zle/zle_move.c b/Src/Zle/zle_move.c
index 925f9c29f..0e940bc21 100644
--- a/Src/Zle/zle_move.c
+++ b/Src/Zle/zle_move.c
@@ -536,6 +536,9 @@ vimatchbracket(UNUSED(char **args))
     int ocs = zlecs, dir, ct;
     unsigned char oth, me;
 
+    if ((zlecs == zlell || zleline[zlecs] == '\n') && zlecs > 0)
+	DECCS();
+
   otog:
     if (zlecs == zlell || zleline[zlecs] == '\n') {
 	zlecs = ocs;