From: zeertzjq Date: Tue, 31 Mar 2026 15:20:08 +0000 (+0000) Subject: Fix a few typos in tests X-Git-Tag: v9.2.0273~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b5efce0765713c3a7f3ecf3beead22ee4d120c78;p=thirdparty%2Fvim.git Fix a few typos in tests closes: #19871 Signed-off-by: zeertzjq Signed-off-by: Christian Brabandt --- diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt index 0b1b4c3cf6..d197ead5c8 100644 --- a/runtime/doc/change.txt +++ b/runtime/doc/change.txt @@ -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* *]* ["x]] Like "p", but adjust the indent to the current line. diff --git a/src/testdir/test_clipmethod.vim b/src/testdir/test_clipmethod.vim index 3e98828bf3..ddf415726b 100644 --- a/src/testdir/test_clipmethod.vim +++ b/src/testdir/test_clipmethod.vim @@ -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() diff --git a/src/testdir/test_eval_stuff.vim b/src/testdir/test_eval_stuff.vim index 3ae3b90e4a..39b1227aef 100644 --- a/src/testdir/test_eval_stuff.vim +++ b/src/testdir/test_eval_stuff.vim @@ -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 diff --git a/src/testdir/test_highlight.vim b/src/testdir/test_highlight.vim index 16c7e14984..6b45e8ea82 100644 --- a/src/testdir/test_highlight.vim +++ b/src/testdir/test_highlight.vim @@ -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, "\:tabn 1\\:wincmd h\\:tabn 3\") 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, "\:setlocal whl=Normal:ErrorMsg\") call TermWait(buf) diff --git a/src/testdir/test_ins_complete.vim b/src/testdir/test_ins_complete.vim index 7f235dc593..bf16a93617 100644 --- a/src/testdir/test_ins_complete.vim +++ b/src/testdir/test_ins_complete.vim @@ -3803,7 +3803,7 @@ func Test_complete_fuzzy_collect() call feedkeys("Gofuzzy\\\\\\\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\\\\\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') diff --git a/src/testdir/test_plugin_netrw.vim b/src/testdir/test_plugin_netrw.vim index a4ab956a03..ced6284197 100644 --- a/src/testdir/test_plugin_netrw.vim +++ b/src/testdir/test_plugin_netrw.vim @@ -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 diff --git a/src/testdir/test_signs.vim b/src/testdir/test_signs.vim index 627f6416a8..870acd10dc 100644 --- a/src/testdir/test_signs.vim +++ b/src/testdir/test_signs.vim @@ -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 diff --git a/src/testdir/test_vimscript.vim b/src/testdir/test_vimscript.vim index 9248c5d6bc..49f34a578c 100644 --- a/src/testdir/test_vimscript.vim +++ b/src/testdir/test_vimscript.vim @@ -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