diff options
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/zle_hist.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c index a61f7f59e..31fa6ace0 100644 --- a/Src/Zle/zle_hist.c +++ b/Src/Zle/zle_hist.c @@ -669,8 +669,7 @@ zle_setline(Histent he) zleline = zalloc((zlell + 2) * ZLE_CHAR_SIZE); ZS_memcpy(zleline, he->zle_text, zlell); - zlecs = zlell; - if (zlecs > findbol() && invicmdmode()) + if ((zlecs = zlell) && invicmdmode()) zlecs--; } else { setline(he->text, ZSL_COPY|ZSL_TOEND); |