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

Commit a9fbea7

Browse files
committed
(C# Console) Only update autocomplete and indent if they are enabled
1 parent 77878dd commit a9fbea7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/UI/Main/CSConsole/CSharpConsole.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,16 @@ public void OnInputChanged(string newText, bool forceUpdate = false)
284284
return;
285285
}
286286

287-
UpdateIndent(newText);
287+
if (EnableAutoIndent)
288+
UpdateIndent(newText);
288289

289290
if (!forceUpdate && string.IsNullOrEmpty(newText))
290291
inputHighlightText.text = string.Empty;
291292
else
292293
inputHighlightText.text = SyntaxHighlightContent(newText);
293294

294-
UpdateAutocompletes();
295+
if (EnableAutocompletes)
296+
UpdateAutocompletes();
295297
}
296298

297299
private void UpdateIndent(string newText)

0 commit comments

Comments
 (0)