mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05: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:
parent
11b175d702
commit
b4f40ca9e0
@ -330,6 +330,11 @@ void readline(void)
|
|||||||
unsigned char buffer[128];
|
unsigned char buffer[128];
|
||||||
int ret, i;
|
int ret, i;
|
||||||
|
|
||||||
|
if (!active_entry) {
|
||||||
|
/* no active entry yet - wait until we have it */
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ret = term_gets(buffer, sizeof(buffer));
|
ret = term_gets(buffer, sizeof(buffer));
|
||||||
if (ret == -1) {
|
if (ret == -1) {
|
||||||
/* lost terminal */
|
/* lost terminal */
|
||||||
|
Loading…
Reference in New Issue
Block a user