We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6badf71 commit dd86730Copy full SHA for dd86730
1 file changed
lua/internals.lua
@@ -142,6 +142,11 @@ M.update_register_buffers = function(yank)
142
-- get the register that is being recorded or yanked into
143
local register = yank and vim.api.nvim_get_vvar("event").regname
144
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
150
-- get a list of all buffers
151
local all_buffers = vim.api.nvim_list_bufs()
152
-- iterate over all buffers, updating the matching ones
0 commit comments