Code style improvements to text_edit and related

This commit is contained in:
VolTer 2023-03-08 23:00:27 +01:00
parent 61630d4e1e
commit f587a21899
6 changed files with 107 additions and 126 deletions

View file

@ -63,7 +63,7 @@ void SpinBox::_text_submitted(const String &p_string) {
expr.instantiate();
String num = TS->parse_number(p_string);
// Ignore the prefix and suffix in the expression
// Ignore the prefix and suffix in the expression.
Error err = expr->parse(num.trim_prefix(prefix + " ").trim_suffix(" " + suffix));
if (err != OK) {
return;