stevearc / dressing.nvim

Neovim plugin to improve the default vim.ui interfaces
MIT License
1.73k stars 32 forks source link

Weird input prompt behavior #18

Closed lopi-py closed 2 years ago

lopi-py commented 2 years ago

https://gyazo.com/038fd26af21cfb8e3661c57ceab0dcf6 Sometimes when the cursor is at top, input prompt acts weird.

stevearc commented 2 years ago

Hmmmm...this looks like some behavior I was seeing before I added a defer to the creation of the float title. I'm having some trouble getting it to repro now, could you tell me:

lopi-py commented 2 years ago
stevearc commented 2 years ago

This is fundamentally working around a bug in neovim (https://github.com/neovim/neovim/issues/13403), but I swapped out the defer_fn hack for a different hack that should hopefully be more robust. Give it a try and see if it fixes the issue

lopi-py commented 2 years ago

Yes, it's fixed, thanks