1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-04 10:41:11 +02:00

32450: make get-line widget set the history number that was saved with the line

This commit is contained in:
Oliver Kiddle 2014-03-03 12:17:28 +01:00
parent 97115e0e7f
commit f62bd9c06c
2 changed files with 7 additions and 0 deletions

View file

@ -1,5 +1,8 @@
2014-03-03 Oliver Kiddle <opk@zsh.org>
* 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:

View file

@ -890,6 +890,10 @@ zgetline(UNUSED(char **args))
free(s);
free(lineadd);
clearlist = 1;
if (stackhist != -1) {
histline = stackhist;
stackhist = -1;
}
}
return 0;
}