mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 07:35:12 +00:00
@@ -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);
|
||||||
|
Reference in New Issue
Block a user