projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b0f6e1
)
lineedit: fix bug 5824: Since version 23530 with lineedit.c,
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 2 Nov 2008 00:41:05 +0000
(
00:41
-0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 2 Nov 2008 00:41:05 +0000
(
00:41
-0000)
"fdisk" & "ed" can't work any more
libbb/lineedit.c
patch
|
blob
|
history
diff --git
a/libbb/lineedit.c
b/libbb/lineedit.c
index c2c3ea99661b7839101af2e71ef7ed834f59bc86..1f21866ca65b28a34603d80a532febae8042332a 100644
(file)
--- a/
libbb/lineedit.c
+++ b/
libbb/lineedit.c
@@
-1415,7
+1415,8
@@
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
- 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 */