LibGUI: Keep autocomplete open after applying 'layout: '

This commit is contained in:
thislooksfun 2021-10-28 20:54:14 -05:00 committed by Andreas Kling
commit fc411695c7
Notes: sideshowbarker 2024-07-18 01:33:59 +09:00

View file

@ -152,7 +152,7 @@ void GMLAutocompleteProvider::provide_completions(Function<void(Vector<Entry>)>
}
if (can_have_declared_layout(class_names.last()) && "layout"sv.matches(pattern))
identifier_entries.empend("layout: ", partial_input_length, Language::Unspecified, "layout");
identifier_entries.empend("layout: ", partial_input_length, Language::Unspecified, "layout", AutocompleteProvider::Entry::HideAutocompleteAfterApplying::No);
};
auto register_properties_and_widgets_matching_pattern = [&](String pattern, size_t partial_input_length) {