mirror of
git://git.code.sf.net/p/zsh/code
synced 2026-01-01 20:11:06 +01:00
Fixed problem in zle_setline() where moving to an empty line would
set zlecs to -1. (Reported by Jun T.)
This commit is contained in:
parent
00e0c063ac
commit
e0c9faba4d
1 changed files with 1 additions and 1 deletions
|
|
@ -670,7 +670,7 @@ zle_setline(Histent he)
|
|||
ZS_memcpy(zleline, he->zle_text, zlell);
|
||||
|
||||
zlecs = zlell;
|
||||
if (invicmdmode())
|
||||
if (zlecs > findbol() && invicmdmode())
|
||||
zlecs--;
|
||||
} else {
|
||||
setline(he->text, ZSL_COPY|ZSL_TOEND);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue