]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0220: Few typos in source and test files v9.1.0220
authorzeertzjq <zeertzjq@outlook.com>
Thu, 28 Mar 2024 10:37:26 +0000 (11:37 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 28 Mar 2024 10:37:26 +0000 (11:37 +0100)
Problem:  Typos in code and tests.
Solution: Fix typos (zeertzjq).

closes: #14321

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/misc1.c
src/testdir/test_buffer.vim
src/testdir/test_history.vim
src/testdir/test_ins_complete.vim
src/testdir/test_mksession.vim
src/testdir/test_recover.vim
src/testdir/test_regexp_latin.vim
src/testdir/test_vim9_script.vim
src/testdir/test_visual.vim
src/version.c
src/vim9class.c

index 3b265be4fac07af7d2835ac7cb767f2b635b4792..666cd5847db2b13beff2caf360c2359dbc736f4d 100644 (file)
@@ -2172,7 +2172,7 @@ init_users(void)
 }
 
 /*
- * Function given to ExpandGeneric() to obtain an user names.
+ * Function given to ExpandGeneric() to obtain user names.
  */
     char_u*
 get_users(expand_T *xp UNUSED, int idx)
index bc29c21621977d37a8e0264d87d46fb195ae50bd..a5643b3bb96ad012b3bee0956736c7207bd07a7d 100644 (file)
@@ -133,7 +133,7 @@ func Test_bdelete_cmd()
   call assert_fails('1,1bdelete 1 2', 'E488:')
   call assert_fails('bdelete \)', 'E55:')
 
-  " Deleting a unlisted and unloaded buffer
+  " Deleting an unlisted and unloaded buffer
   edit Xbdelfile1
   let bnr = bufnr()
   set nobuflisted
index 482328ab4aaefc3240533e50cc03d9d0b60b70f0..19490f252856b6dcf6e912910a2ca3c1e4f0c3aa 100644 (file)
@@ -254,7 +254,7 @@ func Test_history_crypt_key()
   set key& bs& ts&
 endfunc
 
-" The following used to overflow and causing an use-after-free
+" The following used to overflow and causing a use-after-free
 func Test_history_max_val()
 
   set history=10
index 52306e8e91f216b1abf132509f4752a34ef794f9..376d82ff550112fac17f393babdb2e375fab5616 100644 (file)
@@ -1130,7 +1130,7 @@ func Test_complete_wholeline_unlistedbuf()
   edit Xfile1
   enew
   set complete=U
-  " completing from a unloaded buffer should fail
+  " completing from an unloaded buffer should fail
   exe "normal! ia\<C-X>\<C-L>\<C-P>"
   call assert_equal('a', getline(1))
   %d
index 78d301f4150c1aaaeff1995772a1218a9aab9eeb..914d1e3a4aaf741a406076f208f693c3796e4455 100644 (file)
@@ -708,11 +708,11 @@ endfunc
 
 func Test_mkview_no_file_name()
   new
-  " :mkview or :mkview {nr} should fail in a unnamed buffer.
+  " :mkview or :mkview {nr} should fail in an unnamed buffer.
   call assert_fails('mkview', 'E32:')
   call assert_fails('mkview 1', 'E32:')
 
-  " :mkview {file} should succeed in a unnamed buffer.
+  " :mkview {file} should succeed in an unnamed buffer.
   mkview Xview
   help
   source Xview
index a084ef463888a4420dfb8a40798cbdfedc90ec69..e85b2e9b59fd5a663b8ac81e4fa45131232bb2ac 100644 (file)
@@ -380,7 +380,7 @@ func Test_recover_encrypted_swap_file()
   call delete('Xfile1')
 endfunc
 
-" Test for :recover using a unreadable swap file
+" Test for :recover using an unreadable swap file
 func Test_recover_unreadable_swap_file()
   CheckUnix
   CheckNotRoot
index f8614e7d1813a1f363d317674b10ecbdb5fbffcb..63f093a1ac72930e1cb078c877c7e81a03800263 100644 (file)
@@ -874,7 +874,7 @@ func Regex_Mark()
   %d
 endfunc
 
-" Same test as abobe, but use verymagic
+" Same test as above, but use verymagic
 func Regex_Mark_Verymagic()
   call append(0, ['', '', '', 'Marks:', 'asdfSasdfsadfEasdf', 'asdfSas',
         \ 'dfsadfEasdf', '', '', '', '', ''])
index 77b8831d45be5fc1b3500293a24a5920b93e125c..0e2133492768bfed7ef4f9f8b1cc3ef6d23e4e65 100644 (file)
@@ -4906,7 +4906,7 @@ def Test_for_stmt_space_before_type()
   v9.CheckSourceFailure(lines, 'E1059: No white space allowed before colon: :number in range(10)', 2)
 enddef
 
-" This test used to cause an use-after-free memory access
+" This test used to cause a use-after-free memory access
 def Test_for_empty_line_after_lambda()
   var lines =<< trim END
     vim9script
index fd174a9f1c0625a670a45fd21005e7df594270b0..adcc3e912708d12f6fa65cbe33a77e088bd60e05 100644 (file)
@@ -1149,7 +1149,7 @@ func Test_visual_inner_block()
   " try to select non-existing inner block
   call cursor(5, 1)
   call assert_beeps('normal ViBiBiB')
-  " try to select a unclosed inner block
+  " try to select an unclosed inner block
   8,9d
   call cursor(5, 1)
   call assert_beeps('normal ViBiB')
index bad5a93943c85eda68e93c989e0f3776d37465fe..20618a6910be8d876d832ba8f06e3592e7ba5faa 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    220,
 /**/
     219,
 /**/
index b64032309317f5391e6cb711b2aaf7673b514bf5..696349190c94738356b277055bca28e11b3f1756 100644 (file)
@@ -3782,7 +3782,7 @@ object_call_builtin_method(
 }
 
 /*
- * Calls the object "empty()" method and returns the method retun value.  In
+ * Calls the object "empty()" method and returns the method return value.  In
  * case of an error, returns TRUE.
  */
     int