tweaks: fix compilation with --disable-histories

master
Benno Schulenberg 2016-08-30 11:14:19 +02:00
parent 96fbdfbc7d
commit 2dffcf101f
1 changed files with 4 additions and 1 deletions

View File

@ -518,10 +518,13 @@ functionptrtype acquire_an_answer(int *actual, bool allow_tabs,
if (kbinput == KEY_WINCH) {
refresh_func();
*actual = KEY_WINCH;
#ifndef DISABLE_HISTORIES
free(magichistory);
#endif
return NULL;
}
#endif
#endif /* !NANO_TINY */
func = func_from_key(&kbinput);
if (func == do_cancel || func == do_enter)