]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
Fix a few typos in tests
authorzeertzjq <zeertzjq@outlook.com>
Tue, 31 Mar 2026 15:20:08 +0000 (15:20 +0000)
committerChristian Brabandt <cb@256bit.org>
Tue, 31 Mar 2026 15:20:08 +0000 (15:20 +0000)
closes: #19871

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/change.txt
src/testdir/test_clipmethod.vim
src/testdir/test_eval_stuff.vim
src/testdir/test_highlight.vim
src/testdir/test_ins_complete.vim
src/testdir/test_plugin_netrw.vim
src/testdir/test_signs.vim
src/testdir/test_vimscript.vim

index 0b1b4c3cf6a16e8e494ef8fdd6b649a99898d653..d197ead5c8ea8cff5fbd6c1af1d37c076552bc9b 100644 (file)
@@ -1,4 +1,4 @@
-*change.txt*   For Vim version 9.2.  Last change: 2026 Feb 14
+*change.txt*   For Vim version 9.2.  Last change: 2026 Mar 31
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -1157,9 +1157,9 @@ inside of strings can change!  Also see 'softtabstop' option. >
                        current line).
 
                                                        *:ip* *:iput*
-:[line]ip[ut] [x]      like |:put|, but adjust indent to the current line
+:[line]ip[ut] [x]      Like |:put|, but adjust indent to the current line.
 
-:[line]ip[ut]! [x]     like |:put|!, but adjust indent to the current line
+:[line]ip[ut]! [x]     Like |:put|!, but adjust indent to the current line.
 
 ["x]]p             or                                  *]p* *]<MiddleMouse>*
 ["x]]<MiddleMouse>     Like "p", but adjust the indent to the current line.
index 3e98828bf3dded5c3e8e542d87a90f0a87127bfd..ddf415726b786856d2116616c8f4e9a3232717c4 100644 (file)
@@ -124,8 +124,8 @@ func Test_clipreset_switches()
   " hang.
 
   " This will only happen for commands given from the command line, which
-  " is why we cannot just directly call Vim or use the actual Vim instance thats
-  " doing all the testing, since main_loop() is never executed.
+  " is why we cannot just directly call Vim or use the actual Vim instance
+  " that's doing all the testing, since main_loop() is never executed.
 
   " Therefore we should start a separate Vim instance and communicate with it
   " remotely, so we can execute the actual testing stuff with main_loop()
index 3ae3b90e4abe0841f14db5b9a96b0476f4e0df41..39b1227aefee60f259b56487c31044cfc6d86a19 100644 (file)
@@ -964,7 +964,7 @@ func Test_clipboard_provider_no_unamedplus()
   set clipmethod&
 endfunc
 
-" Same as Test_clipboard_provider_registers() but do it when +clipboard isnt
+" Same as Test_clipboard_provider_registers() but do it when +clipboard isn't
 " enabled.
 func Test_clipboard_provider_no_clipboard()
   CheckFeature clipboard_provider
index 16c7e1498428f9dba6ef075d280f4148b2ae08bf..6b45e8ea8270648fe2c419f34c9f691f5d071b7c 100644 (file)
@@ -1431,7 +1431,7 @@ func Test_winhighlight()
 
   call VerifyScreenDump(buf, 'Test_winhighlight_10', {})
 
-  " Make last focused window the other window, which should have no hightlight
+  " Make last focused window the other window, which should have no highlight
   " in tabline.
   call term_sendkeys(buf, "\<Esc>:tabn 1\<CR>\<Esc>:wincmd h\<CR>\<Esc>:tabn 3\<CR>")
   call TermWait(buf)
@@ -1462,7 +1462,7 @@ func Test_winhighlight()
 
   call VerifyScreenDump(buf, 'Test_winhighlight_14', {})
 
-  " Check that overridding Normal group maps to HLF_WIN in 'highlight'.
+  " Check that overriding Normal group maps to HLF_WIN in 'highlight'.
   call term_sendkeys(buf, "\<Esc>:setlocal whl=Normal:ErrorMsg\<CR>")
   call TermWait(buf)
 
index 7f235dc5931ba8db16a1e02ca6eebce758b1c9cb..bf16a936173a1b4e51dbee2db0ca81e6aca8ae54 100644 (file)
@@ -3803,7 +3803,7 @@ func Test_complete_fuzzy_collect()
   call feedkeys("Gofuzzy\<C-X>\<C-N>\<C-N>\<C-N>\<C-N>\<CR>\<Esc>0", 'tx!')
   call assert_equal('completefuzzycollect', getline(line('.') - 1))
 
-  " keywords in 'dictonary'
+  " keywords in 'dictionary'
   call writefile(['hello', 'think'], 'Xtest_dict.txt', 'D')
   set dict=Xtest_dict.txt
   call feedkeys("Sh\<C-X>\<C-K>\<C-N>\<CR>\<Esc>0", 'tx!')
@@ -3821,7 +3821,7 @@ func Test_complete_fuzzy_collect()
   call assert_equal('fuzzycollect', getline('.'))
 
   " when 'fuzzy' is not set, and 'infercase' and 'ignorecase' are set, then
-  " uppercase completes from lowercase words in dictonary
+  " uppercase completes from lowercase words in dictionary
   set completeopt&
   set infercase ignorecase
   call writefile(['hello'], 'Xtest_case.txt', 'D')
index a4ab956a03cfe086cfae533fbf6ccba50ee48c8f..ced6284197aaf298d42e49187c72f268a5f9681c 100644 (file)
@@ -332,7 +332,7 @@ func Test_netrw_check_UNC_paths()
     call assert_equal(
     \   path,
     \   Test_NetrwFile(path),
-    \   $"UNC path: {path} missinterpreted")
+    \   $"UNC path: {path} misinterpreted")
   endfor
 
 endfunction
index 627f6416a84f73b3174206272478624bfcc3fe10..870acd10dcf18e5f89e8179c0c2eb0e3977c31f4 100644 (file)
@@ -165,8 +165,8 @@ func Test_sign()
 
   sign define Sign5 text=X\  linehl=Comment
   sign undefine Sign5
-  " The use of execute in the next line is just to ensure the space for
-  " the text value is obvious and does not get accidently deleted.
+  " The use of :execute in the next line is just to ensure the space for
+  " the text value is obvious and does not get accidentally deleted.
   execute "sign define Sign5 linehl=Comment text=X\ "
   sign undefine Sign5
 
index 9248c5d6bc727deb72e1bb6f27861c36576feffe..49f34a578c12fb11e1edf6d569d9254ba0c2bcac 100644 (file)
@@ -7689,7 +7689,7 @@ func Test_catch_pattern_trailing_chars()
   bw!
 endfunc
 
-" Test for long gerneric type name {{{1
+" Test for long generic type name {{{1
 func Test_function_long_generic_name()
   func TestFunc()
     return