Reading user input requires a foreground layer

Fixes crash from commands such as setenv, readreg, 'layout select' etc.
when starting with 'screen -md'. Detailed report at #24152, debian bug
 #496750.
This commit is contained in:
Sadrul Habib Chowdhury
2008-08-27 16:41:15 -04:00
parent 8c1b8e4521
commit d45a991b63

View File

@@ -120,6 +120,9 @@ int data;
int maxlen;
struct inpdata *inpdata;
if (!flayer)
return;
if (len > 100)
len = 100;
if (!(mode & INP_NOECHO))