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

Fixes duplicate SKIP labels in some scenarios.

This commit is contained in:
FellippeHeitor 2021-07-20 13:16:06 -03:00
parent fe4575a181
commit dfb33206b4

View file

@ -14215,11 +14215,12 @@ SUB clearid
END SUB
SUB vWatchTagLabel (this AS LONG, lastLine AS _BYTE)
STATIC prevLabel AS LONG
STATIC prevLabel AS LONG, prevSkipLabel AS LONG
IF lastLine THEN
IF prevLabel > 0 THEN
IF prevLabel > 0 AND prevLabel <> prevSkipLabel THEN
PRINT #12, "VWATCH_SKIPLABEL_" + str2$(prevLabel) + ":;"
prevSkipLabel = prevLabel
END IF
ELSE
WHILE this > LEN(vWatchUsedLabels)