Skip to content

Commit 18cd98a

Browse files
authored
fix: resolve double confirmation dialog bug in clear all marks (#8)
Call storage.clear_all_marks() directly instead of marksman.clear_all_marks()
1 parent 1e59302 commit 18cd98a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lua/marksman/ui.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,10 @@ local function setup_window_keymaps(buf, marks, project_name, mark_info, search_
329329
prompt = "Clear all marks in this project?",
330330
}, function(choice)
331331
if choice == "Yes" then
332-
local marksman = require("marksman")
333-
marksman.clear_all_marks()
332+
local storage = require("marksman.storage")
333+
storage.clear_all_marks()
334334
close_window()
335+
notify("󰃀 All marks cleared", vim.log.levels.INFO)
335336
end
336337
end)
337338
end

0 commit comments

Comments
 (0)