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 --- ChangeLog | 3 +++ Src/Zle/zle_hist.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 78ba84809..af2fac8d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2014-03-03 Oliver Kiddle + * 32450: Src/Zle/zle_hist.c: make get-line set the history + number that was saved with the line + * 32448: Src/Zle/zle_params.c: fix seg fault after recursive-edit * 32439 (with Yuri D'Elia): Completion/Base/Core/_main_complete: 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 1.4.1