summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2014-10-23 22:12:06 +0200
committerOliver Kiddle <opk@zsh.org>2014-10-23 22:12:06 +0200
commit2fe4bfb100125ecd63d6f54a7cb15f494bc4df1c (patch)
treebe2fa7080c1aa558a40c2d1fe3ede4b530772837 /Src
parentbdedf7b40b85f54979c1e9d19445f8dfbf64967d (diff)
downloadzsh-2fe4bfb100125ecd63d6f54a7cb15f494bc4df1c.tar.gz
zsh-2fe4bfb100125ecd63d6f54a7cb15f494bc4df1c.tar.xz
zsh-2fe4bfb100125ecd63d6f54a7cb15f494bc4df1c.zip
33519: last character in the buffer can be cut, changed or yanked using vi-forward-char
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/zle_move.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_move.c b/Src/Zle/zle_move.c
index 7312b3f20..35e419369 100644
--- a/Src/Zle/zle_move.c
+++ b/Src/Zle/zle_move.c
@@ -599,7 +599,7 @@ vimatchbracket(UNUSED(char **args))
 int
 viforwardchar(char **args)
 {
-    int lim = findeol() - invicmdmode();
+    int lim = findeol() - invicmdmode() + virangeflag;
     int n = zmult;
 
     if (n < 0) {