Use get_slicec instead of get_slice for single character splitters

This commit is contained in:
A Thousand Ships
2024-11-16 17:16:07 +01:00
parent b5bdb88062
commit 466590d0ec
58 changed files with 210 additions and 210 deletions

View File

@ -112,7 +112,7 @@ void EditorCommandPalette::_update_command_search(const String &search_text) {
const int entry_limit = MIN(entries.size(), 300);
for (int i = 0; i < entry_limit; i++) {
String section_name = entries[i].key_name.get_slice("/", 0);
String section_name = entries[i].key_name.get_slicec('/', 0);
TreeItem *section;
if (sections.has(section_name)) {