From dfb33206b4ce2e152045f94a03805f15833149e1 Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Tue, 20 Jul 2021 13:16:06 -0300 Subject: [PATCH] Fixes duplicate SKIP labels in some scenarios. --- source/qb64.bas | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/qb64.bas b/source/qb64.bas index 57d295ab6..061415b55 100644 --- a/source/qb64.bas +++ b/source/qb64.bas @@ -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)