ui: Fixed search related issues
* select elements when clicking into search bar * fixed crash and single file mode clearing when fulltext search yields no results
This commit is contained in:
@@ -402,6 +402,11 @@ void CodeController::expandVisibleSnippets(std::vector<CodeSnippetParams>* snipp
|
||||
{
|
||||
TRACE();
|
||||
|
||||
if (!snippets->size())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
bool inListMode = getView()->isInListMode();
|
||||
|
||||
size_t filesToExpand = inListMode ? std::min(int(snippets->size()), 3) : 1;
|
||||
|
||||
Reference in New Issue
Block a user