tweaks: fix compilation with --enable-tiny

master
Benno Schulenberg 2016-07-25 17:28:54 +02:00
parent 4cff67fdde
commit 68cfb08888
1 changed files with 2 additions and 0 deletions

View File

@ -1399,12 +1399,14 @@ int *parse_verbatim_kbinput(WINDOW *win, size_t *kbinput_len)
while ((kbinput = get_input(win, 1)) == NULL) while ((kbinput = get_input(win, 1)) == NULL)
; ;
#ifndef NANO_TINY
/* When the window was resized, abort and return nothing. */ /* When the window was resized, abort and return nothing. */
if (*kbinput == KEY_WINCH) { if (*kbinput == KEY_WINCH) {
*kbinput_len = 0; *kbinput_len = 0;
free(kbinput); free(kbinput);
return NULL; return NULL;
} }
#endif
#ifdef ENABLE_UTF8 #ifdef ENABLE_UTF8
if (using_utf8()) { if (using_utf8()) {