mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-12 17:55:41 +08:00
fix(neoyank): fix telescope neoyank extension
This commit is contained in:
parent
265e276634
commit
56a1ab4796
@ -50,10 +50,10 @@ local function show_yank_history(opts)
|
||||
actions.select_default:replace(function()
|
||||
local entry = action_state.get_selected_entry()
|
||||
actions.close(prompt_bufnr)
|
||||
local reg = vim.fn.getreg('*')
|
||||
vim.fn.setreg('*', entry.value[2])
|
||||
vim.cmd("put *")
|
||||
vim.fn.setreg('*', reg)
|
||||
local reg = vim.fn.getreg('"')
|
||||
vim.fn.setreg('"', entry.value[1])
|
||||
vim.cmd("normal! p")
|
||||
vim.fn.setreg('"', reg)
|
||||
end)
|
||||
return true
|
||||
end,
|
||||
|
Loading…
x
Reference in New Issue
Block a user