mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
vim-patch:9.1.0467: typos in some comments
Problem: typos in some comments
(after v9.1.0466)
Solution: fix comments
(zeertzjq)
closes: vim/vim#14919
551d8c372e
This commit is contained in:
@ -1195,8 +1195,8 @@ static int ins_compl_build_pum(void)
|
||||
int max_fuzzy_score = 0;
|
||||
|
||||
do {
|
||||
// when completeopt include fuzzy option and leader is not null or empty
|
||||
// set the cp_score for after compare.
|
||||
// When 'completeopt' contains "fuzzy" and leader is not NULL or empty,
|
||||
// set the cp_score for later comparisons.
|
||||
if (compl_fuzzy_match && compl_leader != NULL && lead_len > 0) {
|
||||
comp->cp_score = fuzzy_match_str(comp->cp_str, compl_leader);
|
||||
}
|
||||
@ -3639,7 +3639,7 @@ static void ins_compl_show_filename(void)
|
||||
redraw_cmdline = false; // don't overwrite!
|
||||
}
|
||||
|
||||
/// find a completion item in when completeopt include fuzzy option
|
||||
/// Find a completion item when 'completeopt' contains "fuzzy".
|
||||
static compl_T *find_comp_when_fuzzy(void)
|
||||
{
|
||||
int target_idx = -1;
|
||||
|
@ -2529,6 +2529,7 @@ func Test_complete_fuzzy_match()
|
||||
endif
|
||||
return [#{word: "foo"}, #{word: "foobar"}, #{word: "fooBaz"}, #{word: "foobala"}]
|
||||
endfunc
|
||||
|
||||
new
|
||||
set omnifunc=Omni_test
|
||||
set completeopt+=noinsert,fuzzy
|
||||
@ -2541,13 +2542,13 @@ func Test_complete_fuzzy_match()
|
||||
" select next
|
||||
call feedkeys("S\<C-x>\<C-o>fb\<C-n>", 'tx')
|
||||
call assert_equal('foobar', g:word)
|
||||
" can circly select next
|
||||
" can cyclically select next
|
||||
call feedkeys("S\<C-x>\<C-o>fb\<C-n>\<C-n>\<C-n>", 'tx')
|
||||
call assert_equal(v:null, g:word)
|
||||
" select prev
|
||||
call feedkeys("S\<C-x>\<C-o>fb\<C-p>", 'tx')
|
||||
call assert_equal(v:null, g:word)
|
||||
" can circly select prev
|
||||
" can cyclically select prev
|
||||
call feedkeys("S\<C-x>\<C-o>fb\<C-p>\<C-p>\<C-p>\<C-p>", 'tx')
|
||||
call assert_equal('fooBaz', g:word)
|
||||
|
||||
@ -2566,6 +2567,8 @@ func Test_complete_fuzzy_match()
|
||||
augroup! AAAAA_Group
|
||||
delfunc OnPumChange
|
||||
delfunc Omni_test
|
||||
unlet g:item
|
||||
unlet g:word
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab nofoldenable
|
||||
|
Reference in New Issue
Block a user