summaryrefslogtreecommitdiffstats
path: root/package/busybox/busybox-1.13.0-lineedit.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/busybox/busybox-1.13.0-lineedit.patch')
-rw-r--r--package/busybox/busybox-1.13.0-lineedit.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.13.0-lineedit.patch b/package/busybox/busybox-1.13.0-lineedit.patch
new file mode 100644
index 000000000..3d0a8429d
--- /dev/null
+++ b/package/busybox/busybox-1.13.0-lineedit.patch
@@ -0,0 +1,13 @@
+--- busybox-1.13.0/libbb/lineedit.c Wed Nov 5 22:39:54 2008
++++ busybox-1.13.0-lineedit/libbb/lineedit.c Wed Nov 12 23:18:05 2008
+@@ -1415,8 +1415,10 @@
+ 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 */