1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-05 00:40:26 +00:00

Prevents adding goto re:undefined vWatch labels.

This commit is contained in:
FellippeHeitor 2021-07-21 00:02:15 -03:00
parent fb94a16bfe
commit 1cad7db996

View file

@ -14225,7 +14225,6 @@ SUB vWatchAddLabel (this AS LONG, lastLine AS _BYTE)
WHILE this > LEN(vWatchUsedLabels)
vWatchUsedLabels = vWatchUsedLabels + SPACE$(1000)
WEND
ASC(vWatchUsedLabels, this) = 1
IF firstLineNumberLabelvWatch = 0 THEN
firstLineNumberLabelvWatch = this
@ -14237,6 +14236,7 @@ SUB vWatchAddLabel (this AS LONG, lastLine AS _BYTE)
END IF
IF prevLabel <> this THEN
ASC(vWatchUsedLabels, this) = 1
PRINT #12, "VWATCH_LABEL_" + str2$(this) + ":;"
prevLabel = this
lastLineNumberLabelvWatch = this