From 5aa069d706ec46f4061e18c5cd6f966834c25f8c Mon Sep 17 00:00:00 2001 From: WMJ Date: Wed, 4 Sep 2024 09:01:26 +0800 Subject: [PATCH] - Address missing case in #333 (C# syntax highlight stopped working after Copy/Cut operation with "Copy rich text on copy/cut" option turned on) --- Codist/Taggers/TaggerFactories.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Codist/Taggers/TaggerFactories.cs b/Codist/Taggers/TaggerFactories.cs index 9efd6229..00495c99 100644 --- a/Codist/Taggers/TaggerFactories.cs +++ b/Codist/Taggers/TaggerFactories.cs @@ -114,6 +114,7 @@ ITagger GetTagger(ITextView textView, ITextBuffer buffer) { if (_Taggers.TryGetValue(textView, out var bufferTaggers)) { if (bufferTaggers.TryGetValue(buffer, out var tagger)) { + tagger.Ref(); return tagger; } bufferTaggers.Add(_LastTextBuffer = buffer, _LastTagger = CreateTagger());