-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: vim.fn.win_execute(win, 'normal zx')
does nothing
#830
Comments
vim.fn.win_execute(win, 'normal zx')
does nothing unless win buffer is in normal modevim.fn.win_execute(win, 'normal zx')
does nothing
Note, in case it helps debug the issue, this works as a workaround but has the side effect of cursor flickering if calculating folds for lots of lines:
|
I've also tried using |
note that this affects disable = {
ft = { 'grug-far' },
}, |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Anti-close comment :) |
worked around this issue in grug-far by executing |
Did you check docs and existing issues?
Neovim version (nvim -v)
0.10.0
Operating system/version
MacOS 14.6.1
Describe the bug
This appears to be a regression with V3 which-key version.
In previous versions,
vim.fn.win_execute(win, 'normal zx')
would work.It also works if I completely comment out which-key plugin setup.
Steps To Reproduce
=vim.fn.win_getid()
to get the window id, ex result:1067
zf
zo
:lua vim.fn.win_execute(1067, 'normal zx')
Notice that nothing happens. If you instead do other things like
:lua vim.fn.win_execute(1067, 'normal 5j')
that works!Expected Behavior
the fold should collapse. As it does if you execute
zx
in normal mode from the first window.Health
Log
Repro
Note: this is my full config:
The text was updated successfully, but these errors were encountered: