1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-22 08:21:02 +02:00

33845: save correct cursor position with push-line from vi command mode

This commit is contained in:
Oliver Kiddle 2014-12-05 19:03:24 +01:00
parent 02a8a8c7e4
commit b0a659e710
2 changed files with 7 additions and 0 deletions

View file

@ -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>
* 33866: Completion/compinit: need multifuncdef for TRAPINT

View file

@ -821,6 +821,8 @@ pushline(UNUSED(char **args))
zpushnode(bufstack, zlelineasstring(zleline, zlell, 0, NULL, NULL, 0));
while (--n)
zpushnode(bufstack, ztrdup(""));
if (invicmdmode())
INCCS();
stackcs = zlecs;
*zleline = ZWC('\0');
zlell = zlecs = 0;