about summary refs log tree commit diff
path: root/Src/Zle/zle_vi.c
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2019-04-09 20:45:37 +0200
committerPeter Stephenson <p.stephenson@samsung.com>2019-04-10 09:41:04 +0100
commitc5519372808d78519e1bac2db165d19a34534f74 (patch)
tree45e5f952339bb9c97bb62e0f2907f5626ffc7186 /Src/Zle/zle_vi.c
parentfe228c5984339a303c88279429ee52e5af58de05 (diff)
downloadzsh-c5519372808d78519e1bac2db165d19a34534f74.tar.gz
zsh-c5519372808d78519e1bac2db165d19a34534f74.tar.xz
zsh-c5519372808d78519e1bac2db165d19a34534f74.zip
44215: Maintain LASTWIDGET across reset-prompt.
This avoids side effects of asynchronous notifications.
Diffstat (limited to 'Src/Zle/zle_vi.c')
-rw-r--r--Src/Zle/zle_vi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_vi.c b/Src/Zle/zle_vi.c
index a5ff9200c..0f198d0e8 100644
--- a/Src/Zle/zle_vi.c
+++ b/Src/Zle/zle_vi.c
@@ -216,7 +216,7 @@ getvirange(int wf)
 	     * a number of lines is used.  If the function used
 	     * returns 1, we fail.
 	     */
-	    if ((k2 == bindk) ? dovilinerange() : execzlefunc(k2, zlenoargs, 1))
+	    if ((k2 == bindk) ? dovilinerange() : execzlefunc(k2, zlenoargs, 1, 0))
 		ret = -1;
 	    if (viinrepeat)
 		zmult = mult1;