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

Completion doesn't insert common prefix #206

Open
evanunderscore opened this issue Jan 2, 2016 · 1 comment
Open

Completion doesn't insert common prefix #206

evanunderscore opened this issue Jan 2, 2016 · 1 comment

Comments

@evanunderscore
Copy link
Contributor

When running examples/autocompletion.py, if I attempt to complete an animal starting with 't', the options are 'turkey' and 'turtle'. In this instance, I would expect 'tur' to be filled in before I start tabbing through the options, but instead it cycles immediately to 'turkey', then 'turtle', then back to 't'.

It's unclear to me what the intended behavior of this is. There appears to be code to do this in interface.py (insert_common_part), and it looks like this variable is getting set to True, but the code that does the insertion never seems to get hit.

For reference, I'm using Python 2.7 on Windows 10.

@evanunderscore
Copy link
Contributor Author

I just took another look at this. The problem seems to be that pushing 't' immediately brings up the completions menu, so the first tab starts cycling through it. If I push another letter then backspace, the completion box goes away, and pushing tab fills in the common prefix as expected (but again shows the completion box immediately, counter to the description in the module docstring for examples/autocompletion.py).

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