(C# Console) Only update autocomplete and indent if they are enabled

This commit is contained in:
Sinai 2021-03-24 17:14:13 +11:00
parent 77878ddd94
commit a9fbea7c96

View File

@ -284,14 +284,16 @@ The following helper methods are available:
return; return;
} }
UpdateIndent(newText); if (EnableAutoIndent)
UpdateIndent(newText);
if (!forceUpdate && string.IsNullOrEmpty(newText)) if (!forceUpdate && string.IsNullOrEmpty(newText))
inputHighlightText.text = string.Empty; inputHighlightText.text = string.Empty;
else else
inputHighlightText.text = SyntaxHighlightContent(newText); inputHighlightText.text = SyntaxHighlightContent(newText);
UpdateAutocompletes(); if (EnableAutocompletes)
UpdateAutocompletes();
} }
private void UpdateIndent(string newText) private void UpdateIndent(string newText)