svn commit: trunk/busybox/libbb
vda at busybox.net
vda at busybox.net
Sun Nov 2 00:41:05 UTC 2008
Author: vda
Date: 2008-11-01 17:41:05 -0700 (Sat, 01 Nov 2008)
New Revision: 23898
Log:
lineedit: fix bug 5824: Since version 23530 with lineedit.c,
"fdisk" & "ed" can't work any more
Modified:
trunk/busybox/libbb/lineedit.c
Changeset:
Modified: trunk/busybox/libbb/lineedit.c
===================================================================
--- trunk/busybox/libbb/lineedit.c 2008-11-02 00:25:33 UTC (rev 23897)
+++ trunk/busybox/libbb/lineedit.c 2008-11-02 00:41:05 UTC (rev 23898)
@@ -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 */
More information about the busybox-cvs
mailing list