From c0edbb271064a3add6ee66ad8b2cea38a8d69058 Mon Sep 17 00:00:00 2001 From: arch1t3cht Date: Wed, 9 Nov 2022 09:36:32 +0100 Subject: [PATCH] Fix syntax highlighting with empty clip --- libaegisub/ass/dialogue_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libaegisub/ass/dialogue_parser.cpp b/libaegisub/ass/dialogue_parser.cpp index 8cd1743e7..cb88f3e4c 100644 --- a/libaegisub/ass/dialogue_parser.cpp +++ b/libaegisub/ass/dialogue_parser.cpp @@ -259,7 +259,7 @@ void MarkDrawings(std::string const& str, std::vector &tokens) { goto tag_p; if (!drawing_start) drawing_start = i + 2; - if (drawing_end == drawing_start + 1) + if (drawing_end == drawing_start) goto tag_p; // We found a clip between drawing_start and drawing_end. Now, join