From a9fbea7c963c5971eb4ea50161baacf28e345ddc Mon Sep 17 00:00:00 2001 From: Sinai Date: Wed, 24 Mar 2021 17:14:13 +1100 Subject: [PATCH] (C# Console) Only update autocomplete and indent if they are enabled --- src/UI/Main/CSConsole/CSharpConsole.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/UI/Main/CSConsole/CSharpConsole.cs b/src/UI/Main/CSConsole/CSharpConsole.cs index a91392a..0cc5766 100644 --- a/src/UI/Main/CSConsole/CSharpConsole.cs +++ b/src/UI/Main/CSConsole/CSharpConsole.cs @@ -284,14 +284,16 @@ The following helper methods are available: return; } - UpdateIndent(newText); + if (EnableAutoIndent) + UpdateIndent(newText); if (!forceUpdate && string.IsNullOrEmpty(newText)) inputHighlightText.text = string.Empty; else inputHighlightText.text = SyntaxHighlightContent(newText); - UpdateAutocompletes(); + if (EnableAutocompletes) + UpdateAutocompletes(); } private void UpdateIndent(string newText)