Use .get_length() to support sparse arrays

This commit is contained in:
Brandon Conway 2021-03-17 08:56:08 -07:00
parent 80ce51f88d
commit a889d81937

View File

@ -34,7 +34,7 @@ end
local function mark_exists(buf_name)
local marks = harpoon.get_mark_config().marks
for idx = 1, #marks do
for idx = 1, M.get_length() do
if marks[idx] == buf_name then
return true
end