You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues of which-key.nvim
I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
NVIM v0.9.5
Operating system/version
Ubuntu 22.04
Describe the bug
When macro is executed in command mode with :normal @x and macro contains entering a command in command mode where ^R will be used to get content of the register: neovim will freeze.
If Ctrl+C is pressed the following error message will be printed:
E5108: Error executing lua Keyboard interrupt
stack traceback:
[C]: in function 'getchar'
...al/share/nvim/lazy/which-key.nvim/lua/which-key/view.lua:96: in function 'read_pending'
...al/share/nvim/lazy/which-key.nvim/lua/which-key/view.lua:281: in function 'on_keys'
...al/share/nvim/lazy/which-key.nvim/lua/which-key/view.lua:255: in function 'open'
...al/share/nvim/lazy/which-key.nvim/lua/which-key/init.lua:49: in function 'show'
[string ":lua"]:1: in main chunk
More details in reproduction steps.
Steps To Reproduce
Create a file reproduce.txt with: touch reproduce.txt
Open file with neovim: nvim reproduce.txt
In file write two lines with content: this will be replaced with content of register i
Record folowing macro on first line. Use register x: :.s/this/^Ri/g (This macro will replace all words this on current line with content of register i)
Execute macro in command mode with: :normal @x
Neovim will freeze
Press Ctrl+c to get error written in description
If the same steps are done in neovim instance without WhichKey plugin problem will not happen.
Expected Behavior
Neovim using WhichKey plugin should not freeze and error should not happen when macro is executed with :normal @x when macro uses retrieval of content of register in command mode.
Repro
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"folke/tokyonight.nvim",
{ "folke/which-key.nvim", config=true },
-- add any other plugins here
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
The text was updated successfully, but these errors were encountered:
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.9.5
Operating system/version
Ubuntu 22.04
Describe the bug
When macro is executed in command mode with :normal @x and macro contains entering a command in command mode where ^R will be used to get content of the register: neovim will freeze.
If Ctrl+C is pressed the following error message will be printed:
More details in reproduction steps.
Steps To Reproduce
touch reproduce.txt
nvim reproduce.txt
this will be replaced with content of register i
:.s/this/^Ri/g
(This macro will replace all wordsthis
on current line with content of register i):normal @x
If the same steps are done in neovim instance without WhichKey plugin problem will not happen.
Expected Behavior
Neovim using WhichKey plugin should not freeze and error should not happen when macro is executed with
:normal @x
when macro uses retrieval of content of register in command mode.Repro
The text was updated successfully, but these errors were encountered: