// Move leader to the file part
leader = last_sep + 1;
+ leader_len = STRLEN(leader);
}
}
}
matches = sorted_matches;
num_matches = fuzzy_indices.ga_len;
}
+ else if (leader_len > 0)
+ {
+ FreeWild(num_matches, matches);
+ num_matches = 0;
+ }
vim_free(compl_fuzzy_scores);
ga_clear(&fuzzy_indices);
}
- ins_compl_add_matches(num_matches, matches, p_fic || p_wic);
+ if (num_matches > 0)
+ ins_compl_add_matches(num_matches, matches, p_fic || p_wic);
}
/*
call TermWait(buf, 50)
call VerifyScreenDump(buf, 'Test_pum_highlights_11', {})
+ " issue #15357
+ call term_sendkeys(buf, "\<ESC>S/non_exit_folder\<C-X>\<C-F>")
+ call TermWait(buf, 50)
+ call VerifyScreenDump(buf, 'Test_pum_highlights_15', {})
+
call term_sendkeys(buf, "\<C-E>\<Esc>")
call TermWait(buf)