Initial implementation of intermediate fuzzy completion

e.g. /u/l/b<tab> may be expanded to /usr/local/bin
This commit is contained in:
ridiculousfish
2015-08-07 13:28:47 -07:00
parent fd96bafbc8
commit b92acd3cf2
3 changed files with 166 additions and 12 deletions

View File

@@ -1907,7 +1907,7 @@ static bool handle_completions(const std::vector<completion_t> &comp, bool conti
assert(el->position >= prefix_start);
len = el->position - prefix_start;
if (match_type_requires_full_replacement(best_match_type))
if (will_replace_token || match_type_requires_full_replacement(best_match_type))
{
// No prefix
prefix.clear();