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

One letter argument value not being completed #65

Closed
CarsonF opened this issue Feb 24, 2016 · 1 comment
Closed

One letter argument value not being completed #65

CarsonF opened this issue Feb 24, 2016 · 1 comment

Comments

@CarsonF
Copy link
Contributor

CarsonF commented Feb 24, 2016

If I type bin/queue stats g and hit tab, I'm expecting it to complete to bin/queue stats guzzle but it doesn't.

Digging further I found CompletionContext is parsing the words as:

[
  "bin/queue",
  "stats",
  "",
  "g"
]

Changing CompletionContext.php L215

$cursor >= $this->charIndex

to

$cursor > $this->charIndex

seems to fix it for me. But I'm not sure about the other implications of this.

@CarsonF
Copy link
Contributor Author

CarsonF commented Feb 24, 2016

Wow, awesome thank you! 👍

That looks much better than the hack I was attempting to PR 😉

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