Improve offset handling

This commit is contained in:
hrsh7th
2021-08-07 00:54:31 +09:00
parent 39c8abaeb3
commit 7931bcfafd
2 changed files with 2 additions and 4 deletions

View File

@@ -96,9 +96,7 @@ menu.update = function(self, ctx, sources)
e.score = e.score + priority
table.insert(entries, e)
entry_map[e.id] = e
end
if #filtered > 0 then
offset = math.min(offset, s.offset)
offset = math.min(offset, e:get_offset())
end
end
end