folke / noice.nvim

💥 Highly experimental plugin that completely replaces the UI for messages, cmdline and the popupmenu.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: crash on nightly due to setcursor_mayforce change

topaxi opened this issue · comments

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:

void setcursor_mayforce(bool force);

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

  1. Open neovim nightly
  2. Click on any text while mouse is enabled

Expected Behavior

Should not crash :)