mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +00:00
Don't mark nil or "" buffer names
This commit is contained in:
parent
57a0ec6e13
commit
ee9e803ae6
@ -82,6 +82,11 @@ M.add_file = function(file_name_or_buf_id)
|
||||
return
|
||||
end
|
||||
|
||||
if buf_name == "" or buf_name == nil then
|
||||
print("Couldn't find a valid file name to mark, sorry.")
|
||||
return
|
||||
end
|
||||
|
||||
local config = harpoon.get_mark_config()
|
||||
for idx = 1, #config.marks do
|
||||
if config.marks[idx] == nil then
|
||||
|
Loading…
x
Reference in New Issue
Block a user