From 2bcc95516e50b79f67e95e6807aee6b665a18e93 Mon Sep 17 00:00:00 2001 From: Aikawa Yataro Date: Wed, 21 Aug 2024 13:18:02 +0000 Subject: [PATCH] Fix StateStack.Reset() does not reset anchor position --- src/TextMateSharp/Grammar/StateStack.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TextMateSharp/Grammar/StateStack.cs b/src/TextMateSharp/Grammar/StateStack.cs index c229e29..aaa248b 100644 --- a/src/TextMateSharp/Grammar/StateStack.cs +++ b/src/TextMateSharp/Grammar/StateStack.cs @@ -103,6 +103,7 @@ public void Reset() while (el != null) { el._enterPos = -1; + el._anchorPos = -1; el = el.Parent; } }