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

insert-unambiguous=yes doesn't work #248

Closed
riophae opened this issue May 3, 2021 · 3 comments
Closed

insert-unambiguous=yes doesn't work #248

riophae opened this issue May 3, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@riophae
Copy link

riophae commented May 3, 2021

  • zsh-autocomplete version: 306e221
  • Zsh version: debian/5.8-6
  • Framework: Oh My Zsh
  • Plugin manager: Antigen

Steps to reproduce:

$ git -C ~zsh-autocomplete switch main  # Make sure you test with the `main` branch.
$ git -C ~zsh-autocomplete pull         # Update to the latest commit.
$ cd $(mktemp -d)                       # Create a temp dir and enter it.
$ unset _comp_dumpfile ZDOTDIR XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME
$ HOME=$PWD exec zsh -f                 # Restart Zsh without config files in this dir.
$ zstyle ':autocomplete:tab:*' insert-unambiguous yes  # Set 'insert-unambiguous=yes' before loading the plugin.
$ source /path/to/zsh-autocomplete/zsh-autocomplete.plugin.zsh
$ mkdir dir-{a,b,c}
$ cd d                                  # Press [tab] key here.
$ cd dir-a/                             # What it should be: `cd dir-`

Seems it returned too early here:

@riophae riophae added the bug Something isn't working label May 3, 2021
@marlonrichert
Copy link
Owner

marlonrichert commented May 5, 2021

Thanks for reporting this. I can reproduce it and will publish a fix soon.

@marlonrichert marlonrichert self-assigned this May 5, 2021
marlonrichert added a commit that referenced this issue May 6, 2021
marlonrichert added a commit that referenced this issue May 6, 2021
@marlonrichert
Copy link
Owner

Fixed.

@riophae
Copy link
Author

riophae commented May 7, 2021

Thank you...Now it works great 👍

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants