From 25f53e032c94e6bfce4a707a7a1908bcf2970b7b Mon Sep 17 00:00:00 2001 From: Fellippe Heitor Date: Mon, 16 Aug 2021 11:52:45 -0300 Subject: [PATCH] Prevents crashing when using INPUT and --- internal/support/vwatch/vwatch.bm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/support/vwatch/vwatch.bm b/internal/support/vwatch/vwatch.bm index c6d2fbbf4..e747ea706 100644 --- a/internal/support/vwatch/vwatch.bm +++ b/internal/support/vwatch/vwatch.bm @@ -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