mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 9.1.0467: typos in some comments
Problem: typos in some comments (after v9.1.0466) Solution: fix comments (zeertzjq) closes: #14919 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
92f4e91590
commit
551d8c372e
@ -1255,8 +1255,8 @@ ins_compl_build_pum(void)
|
|||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
// when completeopt include fuzzy option and leader is not null or empty
|
// When 'completeopt' contains "fuzzy" and leader is not NULL or empty,
|
||||||
// set the cp_score for after compare.
|
// set the cp_score for later comparisons.
|
||||||
if (compl_fuzzy_match && compl_leader != NULL && lead_len > 0)
|
if (compl_fuzzy_match && compl_leader != NULL && lead_len > 0)
|
||||||
compl->cp_score = fuzzy_match_str(compl->cp_str, compl_leader);
|
compl->cp_score = fuzzy_match_str(compl->cp_str, compl_leader);
|
||||||
|
|
||||||
@ -4082,7 +4082,7 @@ ins_compl_show_filename(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* find a completion item in when completeopt include fuzzy option
|
* Find a completion item when 'completeopt' contains "fuzzy".
|
||||||
*/
|
*/
|
||||||
static compl_T *
|
static compl_T *
|
||||||
find_comp_when_fuzzy(void)
|
find_comp_when_fuzzy(void)
|
||||||
|
@ -2468,6 +2468,7 @@ func Test_complete_fuzzy_match()
|
|||||||
endif
|
endif
|
||||||
return [#{word: "foo"}, #{word: "foobar"}, #{word: "fooBaz"}, #{word: "foobala"}]
|
return [#{word: "foo"}, #{word: "foobar"}, #{word: "fooBaz"}, #{word: "foobala"}]
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
new
|
new
|
||||||
set omnifunc=Omni_test
|
set omnifunc=Omni_test
|
||||||
set completeopt+=noinsert,fuzzy
|
set completeopt+=noinsert,fuzzy
|
||||||
@ -2480,13 +2481,13 @@ func Test_complete_fuzzy_match()
|
|||||||
" select next
|
" select next
|
||||||
call feedkeys("S\<C-x>\<C-o>fb\<C-n>", 'tx')
|
call feedkeys("S\<C-x>\<C-o>fb\<C-n>", 'tx')
|
||||||
call assert_equal('foobar', g:word)
|
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 feedkeys("S\<C-x>\<C-o>fb\<C-n>\<C-n>\<C-n>", 'tx')
|
||||||
call assert_equal(v:null, g:word)
|
call assert_equal(v:null, g:word)
|
||||||
" select prev
|
" select prev
|
||||||
call feedkeys("S\<C-x>\<C-o>fb\<C-p>", 'tx')
|
call feedkeys("S\<C-x>\<C-o>fb\<C-p>", 'tx')
|
||||||
call assert_equal(v:null, g:word)
|
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 feedkeys("S\<C-x>\<C-o>fb\<C-p>\<C-p>\<C-p>\<C-p>", 'tx')
|
||||||
call assert_equal('fooBaz', g:word)
|
call assert_equal('fooBaz', g:word)
|
||||||
|
|
||||||
@ -2505,6 +2506,8 @@ func Test_complete_fuzzy_match()
|
|||||||
augroup! AAAAA_Group
|
augroup! AAAAA_Group
|
||||||
delfunc OnPumChange
|
delfunc OnPumChange
|
||||||
delfunc Omni_test
|
delfunc Omni_test
|
||||||
|
unlet g:item
|
||||||
|
unlet g:word
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" vim: shiftwidth=2 sts=2 expandtab nofoldenable
|
" vim: shiftwidth=2 sts=2 expandtab nofoldenable
|
||||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
467,
|
||||||
/**/
|
/**/
|
||||||
466,
|
466,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user