mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +00:00
refactor: move call to sync
into resolve_displayed
This commit is contained in:
parent
10c79d8f4f
commit
ad621a6656
@ -156,6 +156,8 @@ function HarpoonList:resolve_displayed(displayed)
|
||||
end
|
||||
|
||||
self.items = new_list
|
||||
|
||||
require("harpoon"):sync()
|
||||
end
|
||||
|
||||
function HarpoonList:select(index, options)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user