diff options
author | Oliver Kiddle <opk@zsh.org> | 2014-03-03 12:17:28 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2014-03-03 12:17:28 +0100 |
commit | f62bd9c06c76b2b34a5e5454aa6f8617c7289b30 (patch) | |
tree | 109def523f0f120020b8bc19713abb06cbf697fb /Src/Zle/zle_hist.c | |
parent | 97115e0e7f33378390aabd3c15d0cd69bf8d191c (diff) | |
download | zsh-f62bd9c06c76b2b34a5e5454aa6f8617c7289b30.tar.gz zsh-f62bd9c06c76b2b34a5e5454aa6f8617c7289b30.tar.xz zsh-f62bd9c06c76b2b34a5e5454aa6f8617c7289b30.zip |
32450: make get-line widget set the history number that was saved with the line
Diffstat (limited to 'Src/Zle/zle_hist.c')
-rw-r--r-- | Src/Zle/zle_hist.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |