Ignore link assuming stdscr is NULL

This commit is contained in:
Arun Prakash Jana 2020-02-01 18:46:56 +05:30
parent 27943b9efb
commit 4401dbe092
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -2453,7 +2453,7 @@ static char *xreadline(const char *prefill, const char *prompt)
memmove(buf + pos - 1, buf + pos, memmove(buf + pos - 1, buf + pos,
(len - pos) * WCHAR_T_WIDTH); (len - pos) * WCHAR_T_WIDTH);
--pos, --len; --pos, --len;
} while (buf[pos-1] != ' ' && buf[pos-1] != '/'); } while (buf[pos - 1] != ' ' && buf[pos - 1] != '/'); // NOLINT
continue; continue;
case CONTROL('K'): case CONTROL('K'):
printprompt(prompt); printprompt(prompt);