mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-13 17:40:25 +00:00
Use .get_length() to support sparse arrays
This commit is contained in:
parent
80ce51f88d
commit
a889d81937
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user