You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Use get_slicec instead of get_slice for single character splitters
This commit is contained in:
@@ -3350,8 +3350,8 @@ void CodeEdit::_set_delimiters(const TypedArray<String> &p_delimiters, Delimiter
|
||||
continue;
|
||||
}
|
||||
|
||||
const String start_key = key.get_slice(" ", 0);
|
||||
const String end_key = key.get_slice_count(" ") > 1 ? key.get_slice(" ", 1) : String();
|
||||
const String start_key = key.get_slicec(' ', 0);
|
||||
const String end_key = key.get_slice_count(" ") > 1 ? key.get_slicec(' ', 1) : String();
|
||||
|
||||
_add_delimiter(start_key, end_key, end_key.is_empty(), p_type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user