diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2015-08-22 21:54:31 -0700 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2015-08-22 21:54:31 -0700 |
commit | 43079e5d8ec4e3016c380a6043c90f94fe45d72a (patch) | |
tree | 346191c8ad09e9601b2de9e8a51cc1da676c3de8 /Src | |
parent | 1cfe4ca1926bc2c8041290bb0d8c3dccf8662f52 (diff) | |
download | zsh-43079e5d8ec4e3016c380a6043c90f94fe45d72a.tar.gz zsh-43079e5d8ec4e3016c380a6043c90f94fe45d72a.tar.xz zsh-43079e5d8ec4e3016c380a6043c90f94fe45d72a.zip |
36274: clear virangeflag when getvirange() has an error (the next keystroke is not a motion/selection).
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/zle_vi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/Zle/zle_vi.c b/Src/Zle/zle_vi.c index 1a11ca7d5..42dc46e7e 100644 --- a/Src/Zle/zle_vi.c +++ b/Src/Zle/zle_vi.c @@ -224,6 +224,7 @@ getvirange(int wf) ZS_memcpy(zleline, lastline, zlell = lastll); zlecs = pos; mark = mpos; + virangeflag = 0; return -1; } @@ -232,6 +233,7 @@ getvirange(int wf) if (!zlell || (zlecs == pos && (mark == -1 || mark == zlecs) && virangeflag != 2) || ret == -1) { mark = mpos; + virangeflag = 0; return -1; } virangeflag = 0; |