bug: crash on nightly due to setcursor_mayforce change
topaxi opened this issue · comments
Damian Senn commented
Did you check docs and existing issues?
- I have read all the noice.nvim docs
- I have searched the existing issues of noice.nvim
- I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
0.10.0 commit 7b14eb543d43344e2498335dc93a68d200469516
Operating system/version
Linux
Describe the bug
Neovim crashes on mouse click.
As the neovim devs pointed out here neovim/neovim#28101 (comment) the offending line is:
noice.nvim/lua/noice/util/ffi.lua
Line 20 in 0cbe3f8
The API changed in this commit: neovim/neovim@7b14eb5 to
void setcursor_mayforce(win_T *wp, bool force)
Not sure myself how to properly feature detect this from within ffi or lua to adjust to latest nightly while not breaking previous versions.
Steps To Reproduce
- Open neovim nightly
- Click on any text while mouse is enabled
Expected Behavior
Should not crash :)