mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2025-12-31 22:04:24 -05:00
Fix: reset register after following external link
This commit is contained in:
@@ -2125,6 +2125,7 @@ local function FollowLink(opts)
|
||||
-- we are in an external [link]
|
||||
vim.cmd("normal yi)")
|
||||
local url = vim.fn.getreg('"0')
|
||||
vim.fn.setreg('"0', saved_reg)
|
||||
return follow_url(url)
|
||||
end
|
||||
vim.fn.setreg('"0', saved_reg)
|
||||
|
||||
Reference in New Issue
Block a user