lineedit: add support for history saving on exit
Based on the patch by Dennis Groenen <tj.groenen@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -12888,6 +12888,10 @@ exitshell(void)
|
||||
char *p;
|
||||
int status;
|
||||
|
||||
#if ENABLE_FEATURE_EDITING_SAVE_ON_EXIT
|
||||
save_history(line_input_state);
|
||||
#endif
|
||||
|
||||
status = exitstatus;
|
||||
TRACE(("pid %d, exitshell(%d)\n", getpid(), status));
|
||||
if (setjmp(loc.loc)) {
|
||||
|
Reference in New Issue
Block a user