From 87c0a6e6dcbf97fa8f9f35a079f33b5824033f2e Mon Sep 17 00:00:00 2001 From: "glassmancody.info" Date: Mon, 24 Oct 2022 08:40:33 -0700 Subject: [PATCH] fix line numbers being off by one for each jump block --- components/fx/lexer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/components/fx/lexer.cpp b/components/fx/lexer.cpp index d42ba46e9d..6140c7375c 100644 --- a/components/fx/lexer.cpp +++ b/components/fx/lexer.cpp @@ -109,6 +109,7 @@ namespace fx if (level == 0) { mHead--; + mLine--; auto sv = std::string_view{ start, static_cast(mHead + 1 - start) }; mLastJumpBlock.content = sv; return sv;