blob: 929f0bfbeb2b7d2f1fbea78bf51be3ad65271e56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- busybox-1.12.1/libbb/lineedit.c Sun Sep 28 20:04:20 2008
+++ busybox-1.12.1-lineedit/libbb/lineedit.c Sun Nov 2 01:39:52 2008
@@ -1415,7 +1415,8 @@
if ((state->flags & SAVE_HISTORY) && state->hist_file)
load_history(state->hist_file);
#endif
- state->cur_history = state->cnt_history;
+ if (state->flags & DO_HISTORY)
+ state->cur_history = state->cnt_history;
/* prepare before init handlers */
cmdedit_y = 0; /* quasireal y, not true if line > xt*yt */
|