mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-07 18:00:24 +00:00
Prevents adding goto
re:undefined vWatch labels.
This commit is contained in:
parent
fb94a16bfe
commit
1cad7db996
|
@ -14225,7 +14225,6 @@ SUB vWatchAddLabel (this AS LONG, lastLine AS _BYTE)
|
||||||
WHILE this > LEN(vWatchUsedLabels)
|
WHILE this > LEN(vWatchUsedLabels)
|
||||||
vWatchUsedLabels = vWatchUsedLabels + SPACE$(1000)
|
vWatchUsedLabels = vWatchUsedLabels + SPACE$(1000)
|
||||||
WEND
|
WEND
|
||||||
ASC(vWatchUsedLabels, this) = 1
|
|
||||||
|
|
||||||
IF firstLineNumberLabelvWatch = 0 THEN
|
IF firstLineNumberLabelvWatch = 0 THEN
|
||||||
firstLineNumberLabelvWatch = this
|
firstLineNumberLabelvWatch = this
|
||||||
|
@ -14237,6 +14236,7 @@ SUB vWatchAddLabel (this AS LONG, lastLine AS _BYTE)
|
||||||
END IF
|
END IF
|
||||||
|
|
||||||
IF prevLabel <> this THEN
|
IF prevLabel <> this THEN
|
||||||
|
ASC(vWatchUsedLabels, this) = 1
|
||||||
PRINT #12, "VWATCH_LABEL_" + str2$(this) + ":;"
|
PRINT #12, "VWATCH_LABEL_" + str2$(this) + ":;"
|
||||||
prevLabel = this
|
prevLabel = this
|
||||||
lastLineNumberLabelvWatch = this
|
lastLineNumberLabelvWatch = this
|
||||||
|
|
Loading…
Reference in a new issue