From 8564aa5c0d77999138e4f46b496e2bbc2f48f718 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Tue, 30 May 2000 03:43:27 +0000 Subject: Wayne: Fix two history bugs that were causing the failure of `print -s'. --- Src/Zle/zle_main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Src/Zle/zle_main.c') 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)) -- cgit 1.4.1