Respect 'clipboard' in copy_entry_path
Using `vim.v.register`, we can respect the user's desire of copying to the unnamed (or unnamedplus) register or default one. Check `:h v:register` Thanks
This commit is contained in:
parent
d27bfa1f37
commit
30039f13f6
1 changed files with 1 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ M.copy_entry_path = {
|
|||
if not entry or not dir then
|
||||
return
|
||||
end
|
||||
vim.fn.setreg("+", dir .. entry.name)
|
||||
vim.fn.setreg(vim.v.register, dir .. entry.name)
|
||||
end,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue