From f62bd9c06c76b2b34a5e5454aa6f8617c7289b30 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Mon, 3 Mar 2014 12:17:28 +0100 Subject: 32450: make get-line widget set the history number that was saved with the line --- Src/Zle/zle_hist.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Src/Zle/zle_hist.c') diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c index bd5bc36d5..44b39d186 100644 --- a/Src/Zle/zle_hist.c +++ b/Src/Zle/zle_hist.c @@ -890,6 +890,10 @@ zgetline(UNUSED(char **args)) free(s); free(lineadd); clearlist = 1; + if (stackhist != -1) { + histline = stackhist; + stackhist = -1; + } } return 0; } -- cgit v1.2.3