mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-06 00:00:22 +00:00
Prevents crashing when using INPUT and
This commit is contained in:
parent
eeff3207d6
commit
25f53e032c
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue