mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Add contains_char() for single-character 'contains' calls.
This commit is contained in:
parent
eb5103093c
commit
b5c31ebb41
61 changed files with 108 additions and 99 deletions
|
@ -1636,7 +1636,7 @@ void ScriptTextEditor::_edit_option_toggle_inline_comment() {
|
|||
script->get_language()->get_comment_delimiters(&comment_delimiters);
|
||||
|
||||
for (const String &script_delimiter : comment_delimiters) {
|
||||
if (!script_delimiter.contains(" ")) {
|
||||
if (!script_delimiter.contains_char(' ')) {
|
||||
delimiter = script_delimiter;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue