Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit d46a489

Browse files
committed
fix disabling ISAC in settings not applying (fix #106)
1 parent 32e7552 commit d46a489

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

UI/Components/EditorElement/EditorElement.xaml.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,19 +347,22 @@ private void Editor_TextChanged(object sender, EventArgs e)
347347

348348
private void Caret_PositionChanged(object sender, EventArgs e)
349349
{
350+
if (Program.MainWindow == null)
351+
{
352+
return;
353+
}
354+
350355
StatusLine_Column.Text = $"{Program.Translations.Get("ColAbb")} {editor.TextArea.Caret.Column}";
351356
StatusLine_Line.Text = $"{Program.Translations.Get("LnAbb")} {editor.TextArea.Caret.Line}";
352357
#if DEBUG
353358
StatusLine_Offset.Text = $"Off {editor.TextArea.Caret.Offset}";
354359
#endif
355-
EvaluateIntelliSense();
356-
357360
var result = bracketSearcher.SearchBracket(editor.Document, editor.CaretOffset);
358361
bracketHighlightRenderer.SetHighlight(result);
359362

360-
if (!Program.OptionsObject.Program_DynamicISAC || Program.MainWindow == null)
363+
if (Program.OptionsObject.Program_DynamicISAC)
361364
{
362-
return;
365+
EvaluateIntelliSense();
363366
}
364367

365368
if (parseTimer != null)

0 commit comments

Comments
 (0)