mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 15:54:56 +00:00
lineedit: fix build failure
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
9ce09bc9cb
commit
c0cae52662
@ -1520,8 +1520,10 @@ static void remember_in_history(char *str)
|
|||||||
for (i = 0; i < state->max_history-1; i++)
|
for (i = 0; i < state->max_history-1; i++)
|
||||||
state->history[i] = state->history[i+1];
|
state->history[i] = state->history[i+1];
|
||||||
/* i == state->max_history-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--;
|
state->cnt_history_in_file--;
|
||||||
|
# endif
|
||||||
}
|
}
|
||||||
/* i <= state->max_history-1 */
|
/* i <= state->max_history-1 */
|
||||||
state->history[i++] = xstrdup(str);
|
state->history[i++] = xstrdup(str);
|
||||||
|
Loading…
Reference in New Issue
Block a user