diff options
author | Denys Vlasenko | 2011-09-04 16:15:24 +0200 |
---|---|---|
committer | Denys Vlasenko | 2011-09-04 16:15:24 +0200 |
commit | e45af7ad17c3f0ecaec1d761aa89cb4fd83afbc2 (patch) | |
tree | 6f4a97cd2a4374cf152408976fd547b3fcd41d1c /libbb | |
parent | bede215cf105377a1127532d2d710924cb58cc39 (diff) | |
download | busybox-e45af7ad17c3f0ecaec1d761aa89cb4fd83afbc2.zip busybox-e45af7ad17c3f0ecaec1d761aa89cb4fd83afbc2.tar.gz |
lineedit: remove SAVE_HISTORY bit, ->hist_file can be used as indicator
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/lineedit.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 0786f9a..603bbfc 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c @@ -1402,8 +1402,6 @@ void save_history(line_input_t *st) { FILE *fp; - if (!(st->flags & SAVE_HISTORY)) - return; if (!st->hist_file) return; if (st->cnt_history <= st->cnt_history_in_file) @@ -1447,8 +1445,6 @@ static void save_history(char *str) int fd; int len, len2; - if (!(state->flags & SAVE_HISTORY)) - return; if (!state->hist_file) return; @@ -2188,7 +2184,7 @@ int FAST_FUNC read_line_input(line_input_t *st, const char *prompt, char *comman state = st ? st : (line_input_t*) &const_int_0; #if MAX_HISTORY > 0 # if ENABLE_FEATURE_EDITING_SAVEHISTORY - if ((state->flags & SAVE_HISTORY) && state->hist_file) + if (state->hist_file) if (state->cnt_history == 0) load_history(state); # endif |