milo perf + cleanup

This commit is contained in:
kepler155c@gmail.com
2019-01-26 00:28:46 -05:00
parent 779d58cd7e
commit bae28521db
7 changed files with 69 additions and 61 deletions

View File

@@ -11,7 +11,6 @@ local colors = _G.colors
local device = _G.device
local fs = _G.fs
local shell = _ENV.shell
local string = _G.string
local context = {
state = Config.load('miloRemote', { displayMode = 0, deposit = true }),
@@ -311,7 +310,7 @@ function page:applyFilter()
for _,v in pairs(t) do
v.score = fuzzy(v.lname, filter)
if v.score > 0 then
if v.score then
if v.count > 0 then
v.score = v.score + 1
end