1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 12:40:36 +00:00

Prevents crashing when using INPUT and

This commit is contained in:
Fellippe Heitor 2021-08-16 11:52:45 -03:00
parent eeff3207d6
commit 25f53e032c

View file

@ -133,10 +133,12 @@ SUB vwatch (globalVariables AS _OFFSET, localVariables AS _OFFSET)
'handle INPUT/LINE INPUT - tell the IDE we'll be hanging for a while
vw_cmd$ = "enter input:" + MKL$(vw_lastLine)
GOSUB SendCommand
EXIT SUB
ELSEIF vwatch_linenumber = -5 THEN
'handle end of INPUT/LINE INPUT - tell the IDE we're moving on
vw_cmd$ = "leave input"
GOSUB SendCommand
EXIT SUB
END IF
IF vwatch_linenumber = vw_lastLine AND vw_setNextLine = 0 THEN EXIT SUB