diff options
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r-- | libbb/lineedit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 1f21866ca..2388b3721 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -1415,8 +1415,10 @@ int FAST_FUNC read_line_input(const char *prompt, char *command, int maxsize, li | |||
1415 | if ((state->flags & SAVE_HISTORY) && state->hist_file) | 1415 | if ((state->flags & SAVE_HISTORY) && state->hist_file) |
1416 | load_history(state->hist_file); | 1416 | load_history(state->hist_file); |
1417 | #endif | 1417 | #endif |
1418 | #if MAX_HISTORY > 0 | ||
1418 | if (state->flags & DO_HISTORY) | 1419 | if (state->flags & DO_HISTORY) |
1419 | state->cur_history = state->cnt_history; | 1420 | state->cur_history = state->cnt_history; |
1421 | #endif | ||
1420 | 1422 | ||
1421 | /* prepare before init handlers */ | 1423 | /* prepare before init handlers */ |
1422 | cmdedit_y = 0; /* quasireal y, not true if line > xt*yt */ | 1424 | cmdedit_y = 0; /* quasireal y, not true if line > xt*yt */ |