mirror of https://github.com/procxx/kepka.git
parent
27103889a4
commit
c496a34f57
|
@ -232,7 +232,11 @@ void FieldAutocomplete::updateFiltered(bool resetScroll) {
|
||||||
auto &recent(cRecentWriteHashtags());
|
auto &recent(cRecentWriteHashtags());
|
||||||
hrows.reserve(recent.size());
|
hrows.reserve(recent.size());
|
||||||
for (auto i = recent.cbegin(), e = recent.cend(); i != e; ++i) {
|
for (auto i = recent.cbegin(), e = recent.cend(); i != e; ++i) {
|
||||||
if (!listAllSuggestions && (!i->first.startsWith(_filter, Qt::CaseInsensitive) || i->first.size() == _filter.size())) {
|
if (!listAllSuggestions
|
||||||
|
&& (i->first.size() == _filter.size()
|
||||||
|
|| !TextUtilities::RemoveAccents(i->first).startsWith(
|
||||||
|
_filter,
|
||||||
|
Qt::CaseInsensitive))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
hrows.push_back(i->first);
|
hrows.push_back(i->first);
|
||||||
|
|
Loading…
Reference in New Issue