refactor: move call to sync into resolve_displayed

This commit is contained in:
Will Hopkins 2023-12-08 13:11:09 -08:00
parent 10c79d8f4f
commit ad621a6656
No known key found for this signature in database
GPG Key ID: 643B8C585BABBB68
2 changed files with 2 additions and 1 deletions

View File

@ -156,6 +156,8 @@ function HarpoonList:resolve_displayed(displayed)
end
self.items = new_list
require("harpoon"):sync()
end
function HarpoonList:select(index, options)

View File

@ -153,7 +153,6 @@ function HarpoonUI:save()
local list = Buffer.get_contents(self.bufnr)
Logger:log("ui#save", list)
self.active_list:resolve_displayed(list)
require("harpoon"):sync()
end
---@param settings HarpoonSettings