Navigation Menu

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

Don't insert prefix for non-prefix matches #3090

Closed
wants to merge 1 commit into from

Commits on May 30, 2016

  1. Don't insert prefix for non-prefix matches

    The issue here is that when inserting a common prefix for e.g. a
    substring match, we increase the amount of available candidates again to
    things the user didn't want.
    
    An example is in share/functions - a completion for "inter" would
    previously expand to "__fish_" because it matched:
    
    - __fish_config_interactive.fish
    - __fish_print_interfaces.fish
    - __fish_print_lpr_printers.fish
    
    The completion afterwards would then show 189 possible matches, only
    three of which (the above) actually matched the original "inter".
    
    Fixes fish-shell#3089.
    faho committed May 30, 2016
    Copy the full SHA
    359919b View commit details
    Browse the repository at this point in the history