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

cmp windows don't auto hide when exec snippet_forward/snippet_backward #545

Closed
2 tasks done
Parsifa1 opened this issue Dec 13, 2024 · 0 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@Parsifa1
Copy link
Contributor

Parsifa1 commented Dec 13, 2024

ref to #537 (comment)

Make sure you have done the following

  • I have updated to the latest version of blink.cmp
  • I have read the README

Bug Description

I think we should instead figure out why buffer_events doesn't emit a cursor moved when jumping between placeholders. It seems likely it's caused by using CursorMovedI instead of CursorMoved and checking if the mode is i or s

@Saghen you are right.
https://github.com/saghen/blink.cmp/blob/f99b03c756b32680eea28e89f95e3c6987cc6c80/lua/blink/cmp/lib/buffer_events.lua#L66-L69

I changed the "CursorMovedI" on the autocmd to "CursorMoved" and it was fixed.
I dont know if it will cause sth going wrong, but we don't have sth like CursorMovedS

@Parsifa1 Parsifa1 added the bug Something isn't working label Dec 13, 2024
@Saghen Saghen mentioned this issue Dec 14, 2024
2 tasks
@Saghen Saghen closed this as completed in 7a04612 Dec 17, 2024
@Saghen Saghen reopened this Dec 17, 2024
@Saghen Saghen closed this as completed in 1e4808e Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants