fix: processed count to exclude entries that got ignored in make_entry (#1323)

It doesnt make sense to count these. Most likely they were never shown.
Example: `man_pages` excludes pages from different sections. So you
filter for man pages and end up with like 5 entries and the counter
still says 1000. Not a good experience.
This commit is contained in:
Simon Hauser
2021-10-09 15:34:22 +02:00
committed by GitHub
parent 917500dbe9
commit 603f55dedf

View File

@@ -998,12 +998,12 @@ function Picker:get_result_processor(find_id, prompt, status_updater)
return true
end
self:_increment "processed"
if not entry or entry.valid == false then
return
end
self:_increment "processed"
count = count + 1
-- TODO: Probably should asyncify this / cache this / do something because this probably takes