]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0467: typos in some comments v9.1.0467
authorzeertzjq <zeertzjq@outlook.com>
Wed, 5 Jun 2024 17:53:32 +0000 (19:53 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 5 Jun 2024 17:53:32 +0000 (19:53 +0200)
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>
src/insexpand.c
src/testdir/test_ins_complete.vim
src/version.c

index f43c12665fd1b0340f9e34269db63b816d3640d0..552c679579cb40b34e334bb5f3c914e9971ec4ba 100644 (file)
@@ -1255,8 +1255,8 @@ ins_compl_build_pum(void)
 
     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)
            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 *
 find_comp_when_fuzzy(void)
index 1cd7d347c0503ddbcca80d4cee814a3d28864638..947b0bb646f1a353b09f2a186ade821cfc9b283f 100644 (file)
@@ -2468,6 +2468,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
@@ -2480,13 +2481,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)
 
@@ -2505,6 +2506,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
index a3fef03732e2894ff5d5e46dfd2aad6adb475c80..92498e1dae636c67f73672067a1cb3a6a8e2cb98 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    467,
 /**/
     466,
 /**/