mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-16 11:00:23 +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
|
end
|
||||||
|
|
||||||
self.items = new_list
|
self.items = new_list
|
||||||
|
|
||||||
|
require("harpoon"):sync()
|
||||||
end
|
end
|
||||||
|
|
||||||
function HarpoonList:select(index, options)
|
function HarpoonList:select(index, options)
|
||||||
|
@ -153,7 +153,6 @@ function HarpoonUI:save()
|
|||||||
local list = Buffer.get_contents(self.bufnr)
|
local list = Buffer.get_contents(self.bufnr)
|
||||||
Logger:log("ui#save", list)
|
Logger:log("ui#save", list)
|
||||||
self.active_list:resolve_displayed(list)
|
self.active_list:resolve_displayed(list)
|
||||||
require("harpoon"):sync()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
---@param settings HarpoonSettings
|
---@param settings HarpoonSettings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user