mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-08-22 06:31:02 +02:00
33845: save correct cursor position with push-line from vi command mode
This commit is contained in:
parent
02a8a8c7e4
commit
b0a659e710
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2014-12-05 Oliver Kiddle <opk@zsh.org>
|
||||||
|
|
||||||
|
* 33845: Src/Zle/zle_hist.c: save correct cursor position with
|
||||||
|
push-line from vi command mode
|
||||||
|
|
||||||
2014-12-05 Peter Stephenson <p.stephenson@samsung.com>
|
2014-12-05 Peter Stephenson <p.stephenson@samsung.com>
|
||||||
|
|
||||||
* 33866: Completion/compinit: need multifuncdef for TRAPINT
|
* 33866: Completion/compinit: need multifuncdef for TRAPINT
|
||||||
|
|
|
@ -821,6 +821,8 @@ pushline(UNUSED(char **args))
|
||||||
zpushnode(bufstack, zlelineasstring(zleline, zlell, 0, NULL, NULL, 0));
|
zpushnode(bufstack, zlelineasstring(zleline, zlell, 0, NULL, NULL, 0));
|
||||||
while (--n)
|
while (--n)
|
||||||
zpushnode(bufstack, ztrdup(""));
|
zpushnode(bufstack, ztrdup(""));
|
||||||
|
if (invicmdmode())
|
||||||
|
INCCS();
|
||||||
stackcs = zlecs;
|
stackcs = zlecs;
|
||||||
*zleline = ZWC('\0');
|
*zleline = ZWC('\0');
|
||||||
zlell = zlecs = 0;
|
zlell = zlecs = 0;
|
||||||
|
|
Loading…
Reference in a new issue