summaryrefslogtreecommitdiff
path: root/Src/Zle/zle_hist.c
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2015-08-12 17:59:38 +0200
committerOliver Kiddle <opk@zsh.org>2015-08-12 18:06:01 +0200
commit4f509c6201968e1e283dbcf34a40a4cb2dea4267 (patch)
treea1dec1a03546034977c8fd4e2e78d42c3fa15017 /Src/Zle/zle_hist.c
parentf17eb26a34af69a2238a3d8b46079445e09c096e (diff)
downloadzsh-4f509c6201968e1e283dbcf34a40a4cb2dea4267.tar.gz
zsh-4f509c6201968e1e283dbcf34a40a4cb2dea4267.zip
36125: don't set history context in get-line
Diffstat (limited to 'Src/Zle/zle_hist.c')
-rw-r--r--Src/Zle/zle_hist.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c
index ffb7ce98f..c61b4ef0e 100644
--- a/Src/Zle/zle_hist.c
+++ b/Src/Zle/zle_hist.c
@@ -894,10 +894,8 @@ zgetline(UNUSED(char **args))
free(s);
free(lineadd);
clearlist = 1;
- if (stackhist != -1) {
- histline = stackhist;
- stackhist = -1;
- }
+ /* not restoring stackhist as we're inserting into current line */
+ stackhist = -1;
}
return 0;
}