Merge pull request #74623 from MewPurPur/edit-text-with-style

Code style improvements to text_edit and related
This commit is contained in:
Yuri Sizov
2023-04-17 19:08:08 +02:00
committed by GitHub
6 changed files with 107 additions and 126 deletions

View File

@@ -62,7 +62,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;