mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +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 function mark_exists(buf_name)
|
||||||
local marks = harpoon.get_mark_config().marks
|
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
|
if marks[idx] == buf_name then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user