Skip to content
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

Weird input prompt behavior #18

Closed
lopi-py opened this issue Jan 31, 2022 · 4 comments
Closed

Weird input prompt behavior #18

lopi-py opened this issue Jan 31, 2022 · 4 comments

Comments

@lopi-py
Copy link

lopi-py commented Jan 31, 2022

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

@stevearc
Copy link
Owner

stevearc commented Feb 2, 2022

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:

  • What are you doing exactly to bring up the modal?
  • What version of Neovim are you on?
  • Does this only happen when your cursor is on the top line?

@lopi-py
Copy link
Author

lopi-py commented Feb 2, 2022

  • :lua vim.ui.input({ prompt = "text" }, function() end)
  • NVIM v0.7.0-dev+991-g547497b04
  • No, now I have noticed that it's random

@stevearc
Copy link
Owner

stevearc commented Feb 2, 2022

This is fundamentally working around a bug in neovim (neovim/neovim#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
Copy link
Author

lopi-py commented Feb 3, 2022

Yes, it's fixed, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants