diff options
author | 2016-05-30 12:56:04 +0200 | |
---|---|---|
committer | 2016-06-02 21:25:50 -0700 | |
commit | 57f289850c24a44a2590cb30762853f2a61f4efd (patch) | |
tree | f7dea9ef2892299df94775589c5ace0d0377a2fc /src/utf8.cpp | |
parent | 63a851cfd6f6be2ecfaf695495ed788b8115fb9d (diff) |
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 #3089.
Diffstat (limited to 'src/utf8.cpp')
0 files changed, 0 insertions, 0 deletions