aboutsummaryrefslogtreecommitdiff
path: root/libbb/lineedit.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-02-12 08:43:06 +0000
committerRon Yorston <rmy@pobox.com>2019-02-12 08:43:06 +0000
commit7a8bd5ae33d8c390763f0787afe6b8c495e2d978 (patch)
tree29b0abb320d73b37f4fa4d9b355b3b32db42e836 /libbb/lineedit.c
parent0eda390d68c456975289471e68b615ae096ab33b (diff)
parentf81e0120f4478c58e126bcadb19b9954ed184e8f (diff)
downloadbusybox-w32-7a8bd5ae33d8c390763f0787afe6b8c495e2d978.tar.gz
busybox-w32-7a8bd5ae33d8c390763f0787afe6b8c495e2d978.tar.bz2
busybox-w32-7a8bd5ae33d8c390763f0787afe6b8c495e2d978.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r--libbb/lineedit.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 0b4e326d8..0ec9baa5f 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -2462,13 +2462,14 @@ int FAST_FUNC read_line_input(line_input_t *st, const char *prompt, char *comman
2462 timeout = st->timeout; 2462 timeout = st->timeout;
2463 } 2463 }
2464#if MAX_HISTORY > 0 2464#if MAX_HISTORY > 0
2465 if (state->flags & DO_HISTORY) {
2465# if ENABLE_FEATURE_EDITING_SAVEHISTORY 2466# if ENABLE_FEATURE_EDITING_SAVEHISTORY
2466 if (state->hist_file) 2467 if (state->hist_file)
2467 if (state->cnt_history == 0) 2468 if (state->cnt_history == 0)
2468 load_history(state); 2469 load_history(state);
2469# endif 2470# endif
2470 if (state->flags & DO_HISTORY)
2471 state->cur_history = state->cnt_history; 2471 state->cur_history = state->cnt_history;
2472 }
2472#endif 2473#endif
2473 2474
2474 /* prepare before init handlers */ 2475 /* prepare before init handlers */