mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 11:50:10 +02: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
1 changed files with 5 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue