table.remove takes only 2 arguments
This commit is contained in:
parent
787cef2a1d
commit
6d7d5823d9
@ -128,7 +128,7 @@ function M.refresh_entries(entries, cwd)
|
||||
local idx = 1
|
||||
for _, name in ipairs(cached_entries) do
|
||||
if not new_entries[name] then
|
||||
table.remove(entries, idx, idx + 1)
|
||||
table.remove(entries, idx)
|
||||
else
|
||||
idx = idx + 1
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user