lineedit: fix bug 5824: Since version 23530 with lineedit.c,
"fdisk" & "ed" can't work any more
This commit is contained in:
@ -1415,6 +1415,7 @@ int FAST_FUNC read_line_input(const char *prompt, char *command, int maxsize, li
|
|||||||
if ((state->flags & SAVE_HISTORY) && state->hist_file)
|
if ((state->flags & SAVE_HISTORY) && state->hist_file)
|
||||||
load_history(state->hist_file);
|
load_history(state->hist_file);
|
||||||
#endif
|
#endif
|
||||||
|
if (state->flags & DO_HISTORY)
|
||||||
state->cur_history = state->cnt_history;
|
state->cur_history = state->cnt_history;
|
||||||
|
|
||||||
/* prepare before init handlers */
|
/* prepare before init handlers */
|
||||||
|
Reference in New Issue
Block a user