Skip to content

Commit

Permalink
fix: pass + and * regsiters to feedkeys #36
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 9, 2021
1 parent d66ffdd commit ce37f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/which-key/view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function M.execute(prefix, mode, buf)
if buf then unhook(Keys.get_tree(mode, buf).tree:path(prefix), buf) end

-- handle registers that were passed when opening the popup
if M.reg ~= "\"" and M.reg ~= "+" and M.reg ~= "*" then
if M.reg ~= "\"" then
local reg_key = "\""
if M.mode == "i" then reg_key = "<c-r>" end
vim.api.nvim_feedkeys(reg_key .. M.reg, "n", false)
Expand Down

0 comments on commit ce37f41

Please sign in to comment.