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

Text Left Over After Aborting Completion Menu #98

Open
CharlesARoy opened this issue Oct 26, 2023 · 0 comments
Open

Text Left Over After Aborting Completion Menu #98

CharlesARoy opened this issue Oct 26, 2023 · 0 comments

Comments

@CharlesARoy
Copy link

When I tab over a Copilot completion suggestion, it seems to actually add some of the text to the line I'm on (weirdly, before the cursor). Then, if I abort the completion menu, some of that added text is often left over, for example:

Copilot_bug

It only seems to happen when the suggestion occurs at an indented position on an otherwise blank line.

I don't think it's relevant, but this is my setup for <Tab> in cmp.setup{}:
image

The command I run to abort the completion menu is cmp.abort() which, according to :h cmp.abort "closes the completion menu and restores the current line to the state before the current completion was started." But yeah, the line is definitely not being restored properly. That makes me think it's an issue with cmp but this issue only comes up for Copilot suggestions (possibly because other completion sources don't seem to offer suggestions on indented blank lines).

Any help is appreciated :)

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

1 participant