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

Single completion with matching buffer #213

Open
tkruse opened this issue Sep 3, 2015 · 0 comments
Open

Single completion with matching buffer #213

tkruse opened this issue Sep 3, 2015 · 0 comments

Comments

@tkruse
Copy link
Contributor

tkruse commented Sep 3, 2015

Currently the CandidateListCompletionHandler does nothing and returns false if the buffer is equal to the candidate. This is flawed in 2 ways.

First, the question should not be whether the full buffer is equal to the candidate, but only the respective region that would be changed.

Second, I think even when that region is the same, the completion handler should move the cursor to the position behind the completion value. Such that hitting tab inside an argument, when the only candidate is the existing argument, will still move your cursor to the end of the argument.

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