1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-05 17:00:26 +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 'handle INPUT/LINE INPUT - tell the IDE we'll be hanging for a while
vw_cmd$ = "enter input:" + MKL$(vw_lastLine) vw_cmd$ = "enter input:" + MKL$(vw_lastLine)
GOSUB SendCommand GOSUB SendCommand
EXIT SUB
ELSEIF vwatch_linenumber = -5 THEN ELSEIF vwatch_linenumber = -5 THEN
'handle end of INPUT/LINE INPUT - tell the IDE we're moving on 'handle end of INPUT/LINE INPUT - tell the IDE we're moving on
vw_cmd$ = "leave input" vw_cmd$ = "leave input"
GOSUB SendCommand GOSUB SendCommand
EXIT SUB
END IF END IF
IF vwatch_linenumber = vw_lastLine AND vw_setNextLine = 0 THEN EXIT SUB IF vwatch_linenumber = vw_lastLine AND vw_setNextLine = 0 THEN EXIT SUB