Merge pull request #51 from joacohoyos/master

Fix bug when adding file on previously removed mark
This commit is contained in:
ThePrimeagen 2021-04-01 08:14:25 -06:00 committed by GitHub
commit 50a5784db5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,7 @@ M.add_file = function(file_name_or_buf_id)
for idx = 1, M.get_length() do
local filename = M.get_marked_file_name(idx)
if filename == "" then
harpoon.get_mark_config().marks[idx] = create_mark(filename)
harpoon.get_mark_config().marks[idx] = create_mark(buf_name)
M.remove_empty_tail()
return