From b0437610ab1399ba85fd605f9e2ee357a8706097 Mon Sep 17 00:00:00 2001 From: Joaquin Hoyos Date: Wed, 31 Mar 2021 20:50:58 -0300 Subject: [PATCH] create mark with buf_name instead of empty string --- lua/harpoon/mark.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/harpoon/mark.lua b/lua/harpoon/mark.lua index 214e5ec..ac027be 100644 --- a/lua/harpoon/mark.lua +++ b/lua/harpoon/mark.lua @@ -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