diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2000-05-30 03:43:27 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2000-05-30 03:43:27 +0000 |
commit | 8564aa5c0d77999138e4f46b496e2bbc2f48f718 (patch) | |
tree | efebd369f29947bb23a73d9cd77914e9619a5e45 /Src/Zle/zle_main.c | |
parent | 76868bdc6a9d9aaffb280f8206bdeebd1d2f14fc (diff) | |
download | zsh-8564aa5c0d77999138e4f46b496e2bbc2f48f718.tar.gz zsh-8564aa5c0d77999138e4f46b496e2bbc2f48f718.tar.xz zsh-8564aa5c0d77999138e4f46b496e2bbc2f48f718.zip |
Wayne: Fix two history bugs that were causing the
failure of `print -s'.
Diffstat (limited to 'Src/Zle/zle_main.c')
-rw-r--r-- | Src/Zle/zle_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c index a19f9b5db..49b682c18 100644 --- a/Src/Zle/zle_main.c +++ b/Src/Zle/zle_main.c @@ -641,8 +641,11 @@ execzlefunc(Thingy func, char **args) if(!(wflags & ZLE_LASTCOL)) lastcol = -1; if (wflags & WIDGET_NCOMP) { + int atcurhist = histline == curhist; compwidget = w; ret = completecall(args); + if (atcurhist) + histline = curhist; } else ret = w->u.fn(args); if (!(wflags & ZLE_NOTCOMMAND)) |