1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

36273: teach endofline() and endoflinehist() about invicmdmode() cursor placement.

This commit is contained in:
Barton E. Schaefer 2015-08-22 21:50:31 -07:00
parent 2ed3b84fa6
commit 1cfe4ca192
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2015-08-22 Barton E. Schaefer <schaefer@zsh.org>
* 36273: Src/Zle/zle_move.c: teach endofline() and endoflinehist()
about invicmdmode() cursor placement.
2015-08-21 Peter Stephenson <p.w.stephenson@ntlworld.com>
* unposted: Config/version.mk, Src/parse.c, Src/Zle/zle_misc.c:

View file

@ -344,6 +344,8 @@ endofline(char **args)
zlecs = zlell;
return 0;
}
if ((zlecs += invicmdmode()) == zlell)
break;
if (zleline[zlecs] == '\n')
if (++zlecs == zlell)
return 0;
@ -414,6 +416,8 @@ endoflinehist(char **args)
zlecs = zlell;
break;
}
if ((zlecs += invicmdmode()) == zlell)
break;
if (zleline[zlecs] == '\n')
if (++zlecs == zlell)
break;