projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84f75b0
)
lineedit: state->hist_file doesn't exist if !FEATURE_EDITING_SAVEHISTORY,
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 15 Apr 2007 13:21:01 +0000
(13:21 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 15 Apr 2007 13:21:01 +0000
(13:21 -0000)
#ifdef it out
libbb/lineedit.c
patch
|
blob
|
history
diff --git
a/libbb/lineedit.c
b/libbb/lineedit.c
index
4fc5e7a
..
3cb9c3e
100644
(file)
--- a/
libbb/lineedit.c
+++ b/
libbb/lineedit.c
@@
-948,8
+948,10
@@
static void remember_in_history(const char *str)
state->history[i++] = xstrdup(str);
state->cur_history = i;
state->cnt_history = i;
+#if ENABLE_FEATURE_EDITING_SAVEHISTORY
if ((state->flags & SAVE_HISTORY) && state->hist_file)
save_history(state->hist_file);
+#endif
USE_FEATURE_EDITING_FANCY_PROMPT(num_ok_lines++;)
}