Skip to content

Commit 19f7d1d

Browse files
committed
fix: clear all marks not persisting changes
The UI was calling storage.clear_all_marks() directly which only cleared marks in memory. Now uses the main module's method to properly save changes. Solves: #16
1 parent ace36b6 commit 19f7d1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/marksman/ui.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,8 @@ local function setup_window_keymaps(buf, marks, project_name, mark_info, search_
438438
prompt = "Clear all marks in this project?",
439439
}, function(choice)
440440
if choice == "Yes" then
441-
local storage = require("marksman.storage")
442-
storage.clear_all_marks()
441+
local marksman = require("marksman")
442+
marksman.clear_all_marks()
443443
close_window()
444444
notify("󰃀 All marks cleared", vim.log.levels.INFO)
445445
end

0 commit comments

Comments
 (0)