1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Don't handle keypresses when there's no active entry in screen.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2059 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-11-18 18:12:28 +00:00 committed by cras
parent 11b175d702
commit b4f40ca9e0

View File

@ -330,6 +330,11 @@ void readline(void)
unsigned char buffer[128];
int ret, i;
if (!active_entry) {
/* no active entry yet - wait until we have it */
return;
}
ret = term_gets(buffer, sizeof(buffer));
if (ret == -1) {
/* lost terminal */