_chkinput
extern int _chkinput(void);
if ((_INPUTPENDING = _chkinput()) == TRUE) {
if (!curwin && (_INPUTPENDING = _chkinput()) == TRUE) {