Commit 43079e5d authored by Barton E. Schaefer's avatar Barton E. Schaefer

36274: clear virangeflag when getvirange() has an error (the next keystroke is...

36274: clear virangeflag when getvirange() has an error (the next keystroke is not a motion/selection).
parent 1cfe4ca1
2015-08-22 Barton E. Schaefer <schaefer@zsh.org>
* 36274: Src/Zle/zle_vi.c: clear virangeflag when getvirange()
has an error (the next keystroke is not a motion/selection).
* 36273: Src/Zle/zle_move.c: teach endofline() and endoflinehist()
about invicmdmode() cursor placement.
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment