diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp index 0bc42446421..8433f4ff7bb 100644 --- a/editor/create_dialog.cpp +++ b/editor/create_dialog.cpp @@ -585,7 +585,7 @@ void CreateDialog::_history_selected() { if (!item) return; - search_box->set_text(item->get_text(0)); + search_box->set_text(item->get_text(0).get_slicec(' ', 0)); _update_search(); } @@ -595,7 +595,7 @@ void CreateDialog::_favorite_selected() { if (!item) return; - search_box->set_text(item->get_text(0)); + search_box->set_text(item->get_text(0).get_slicec(' ', 0)); _update_search(); }