Improve handling for editor search with blank searches
This commit is contained in:
parent
77843355a0
commit
208c4ce3f0
1 changed files with 5 additions and 1 deletions
|
@ -331,7 +331,10 @@ bool EditorHelpSearch::Runner::_phase_match_classes() {
|
||||||
|
|
||||||
// Match class name.
|
// Match class name.
|
||||||
if (search_flags & SEARCH_CLASSES) {
|
if (search_flags & SEARCH_CLASSES) {
|
||||||
match.name = term.is_empty() || _match_string(term, class_doc.name);
|
// If the search term is empty, add any classes which are not script docs or which don't start with
|
||||||
|
// a double-quotation. This will ensure that only C++ classes and explictly named classes will
|
||||||
|
// be added.
|
||||||
|
match.name = (term.is_empty() && (!class_doc.is_script_doc || class_doc.name[0] != '\"')) || _match_string(term, class_doc.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Match members if the term is long enough.
|
// Match members if the term is long enough.
|
||||||
|
@ -398,6 +401,7 @@ bool EditorHelpSearch::Runner::_phase_match_classes() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
matches[class_doc.name] = match;
|
||||||
}
|
}
|
||||||
|
|
||||||
iterator_doc = iterator_doc->next();
|
iterator_doc = iterator_doc->next();
|
||||||
|
|
Loading…
Reference in a new issue