mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-01-06 01:23:31 +08:00
(C# Console) Only update autocomplete and indent if they are enabled
This commit is contained in:
parent
77878ddd94
commit
a9fbea7c96
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user