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:
@@ -998,12 +998,12 @@ function Picker:get_result_processor(find_id, prompt, status_updater)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
self:_increment "processed"
|
|
||||||
|
|
||||||
if not entry or entry.valid == false then
|
if not entry or entry.valid == false then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
self:_increment "processed"
|
||||||
|
|
||||||
count = count + 1
|
count = count + 1
|
||||||
|
|
||||||
-- TODO: Probably should asyncify this / cache this / do something because this probably takes
|
-- TODO: Probably should asyncify this / cache this / do something because this probably takes
|
||||||
|
|||||||
Reference in New Issue
Block a user