Skip to content

Commit dd86730

Browse files
committed
allow updating with the " register to work
related to #12
1 parent 6badf71 commit dd86730

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lua/internals.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ M.update_register_buffers = function(yank)
142142
-- get the register that is being recorded or yanked into
143143
local register = yank and vim.api.nvim_get_vvar("event").regname
144144
or vim.fn.reg_recording()
145+
-- if this is a yank operation and no register was specified, then we will
146+
-- be yanking into the " register
147+
if yank and register == "" then
148+
register = '"'
149+
end
145150
-- get a list of all buffers
146151
local all_buffers = vim.api.nvim_list_bufs()
147152
-- iterate over all buffers, updating the matching ones

0 commit comments

Comments
 (0)