From 1c39e146fbb259466c4765b07a2b9f3196df7544 Mon Sep 17 00:00:00 2001 From: Devin Bidwell Date: Wed, 24 Dec 2025 12:36:33 -0700 Subject: [PATCH] Clear editor selection for IC10 if no slang source maps to an IC10 source --- csharp_mod/Formatter.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/csharp_mod/Formatter.cs b/csharp_mod/Formatter.cs index a7a0532..890b79c 100644 --- a/csharp_mod/Formatter.cs +++ b/csharp_mod/Formatter.cs @@ -223,6 +223,11 @@ public class SlangFormatter : ICodeFormatter if (lines.Count() < 1) { + Ic10Editor.Selection = new TextRange + { + End = new TextPosition { Col = 0, Line = 0 }, + Start = new TextPosition { Col = 0, Line = 0 }, + }; return; } // get the total range of the IC10 source for the selected Slang line