lineedit: add missing #if/#endif

init: fix warnings
This commit is contained in:
Denis Vlasenko
2007-02-03 02:42:47 +00:00
parent 4921b54f37
commit e968fcd562
2 changed files with 6 additions and 5 deletions

View File

@ -1269,8 +1269,10 @@ int read_line_input(const char* prompt, char* command, int maxsize, line_input_t
/* With null flags, no other fields are ever used */
state = st ? st : (line_input_t*) &const_int_0;
#if ENABLE_FEATURE_EDITING_SAVEHISTORY
if (state->flags & SAVE_HISTORY)
load_history(state->hist_file);
#endif
/* prepare before init handlers */
cmdedit_y = 0; /* quasireal y, not true if line > xt*yt */