1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-20 06:56:05 +02:00

36125: don't set history context in get-line

This commit is contained in:
Oliver Kiddle 2015-08-12 17:59:38 +02:00
parent f17eb26a34
commit 4f509c6201
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,7 @@
2015-08-12 Oliver Kiddle <opk@zsh.org>
* 36125: Src/Zle/zle_hist.c: don't set history context in get-line
* 35834 (tweaked): Src/Zle/zle_misc.c: strip a final newline from
pasted text: inserting is hard to tell apart from accepting it

View File

@ -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;
}