summaryrefslogtreecommitdiffstats
path: root/package/busybox/busybox-1.12.1-lineedit.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/busybox/busybox-1.12.1-lineedit.patch')
-rw-r--r--package/busybox/busybox-1.12.1-lineedit.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.12.1-lineedit.patch b/package/busybox/busybox-1.12.1-lineedit.patch
new file mode 100644
index 000000000..929f0bfbe
--- /dev/null
+++ b/package/busybox/busybox-1.12.1-lineedit.patch
@@ -0,0 +1,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 */