summaryrefslogtreecommitdiff
path: root/libbb/lineedit.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-11-29 06:43:05 +0000
committerDenis Vlasenko2008-11-29 06:43:05 +0000
commit9343da45d3f226cc8b45879ac8dbacac2911cdd8 (patch)
tree9e76d089f819e99fc7e57f3fb771af834cdc7c5a /libbb/lineedit.c
parent84641942e5366b2e09367ba4f4376c99f15ecc8e (diff)
downloadbusybox-9343da45d3f226cc8b45879ac8dbacac2911cdd8.zip
busybox-9343da45d3f226cc8b45879ac8dbacac2911cdd8.tar.gz
apply post-1.12.2 fixes, bump version to 1.12.31_12_3
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r--libbb/lineedit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 1f21866..2388b37 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
if ((state->flags & SAVE_HISTORY) && state->hist_file)
load_history(state->hist_file);
#endif
+#if MAX_HISTORY > 0
if (state->flags & DO_HISTORY)
state->cur_history = state->cnt_history;
+#endif
/* prepare before init handlers */
cmdedit_y = 0; /* quasireal y, not true if line > xt*yt */