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:
9ce09bc
)
lineedit: fix build failure
author
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 4 Nov 2011 00:09:09 +0000
(
01:09
+0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 4 Nov 2011 00:09:09 +0000
(
01:09
+0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/lineedit.c
patch
|
blob
|
history
diff --git
a/libbb/lineedit.c
b/libbb/lineedit.c
index 0d232889b16231f3292df488cfb94d2b88bd8ef4..1390ed62d9b381f2ecfcd9a126724a1ca6d5acd2 100644
(file)
--- a/
libbb/lineedit.c
+++ b/
libbb/lineedit.c
@@
-1520,8
+1520,10
@@
static void remember_in_history(char *str)
for (i = 0; i < state->max_history-1; i++)
state->history[i] = state->history[i+1];
/* i == state->max_history-1 */
- if (ENABLE_FEATURE_EDITING_SAVE_ON_EXIT && state->cnt_history_in_file)
+# if ENABLE_FEATURE_EDITING_SAVE_ON_EXIT
+ if (state->cnt_history_in_file)
state->cnt_history_in_file--;
+# endif
}
/* i <= state->max_history-1 */
state->history[i++] = xstrdup(str);