diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-09-09 17:47:28 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-09-09 17:58:32 +0800 |
commit | b9d9cd77421a7906d6e0a968a3c0ddd86e9923fe (patch) | |
tree | 74ed486e5a2a825d99fed78b28661ffcde0bfae2 | |
parent | bc09fc04b8ef216bafa34792c3486a750e5c8bb3 (diff) | |
download | rneovim-b9d9cd77421a7906d6e0a968a3c0ddd86e9923fe.tar.gz rneovim-b9d9cd77421a7906d6e0a968a3c0ddd86e9923fe.tar.bz2 rneovim-b9d9cd77421a7906d6e0a968a3c0ddd86e9923fe.zip |
vim-patch:partial:9.0.1886: Various Typos
Problem: Various Typos
Solution: Fix Typos
This is a collection of typo related commits.
closes: vim/vim#12753
closes: vim/vim#13016
https://github.com/vim/vim/commit/ee17b6f70d382ec6c5d8d27b56c4e84106ac8c55
Co-authored-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Adri Verhoef <a3@a3.xs4all.nl>
Co-authored-by: Viktor Szépe <viktor@szepe.net>
Co-authored-by: nuid64 <lvkuzvesov@proton.me>
Co-authored-by: Meng Xiangzhuo <aumo@foxmail.com>
Co-authored-by: Dominique Pellé <dominique.pelle@gmail.com>
-rw-r--r-- | runtime/doc/insert.txt | 2 | ||||
-rw-r--r-- | runtime/doc/windows.txt | 2 | ||||
-rw-r--r-- | runtime/ftplugin/zig.vim | 2 | ||||
-rw-r--r-- | src/nvim/keycodes.c | 3 | ||||
-rw-r--r-- | src/nvim/mbyte.c | 2 | ||||
-rw-r--r-- | test/old/testdir/test_autocmd.vim | 4 | ||||
-rw-r--r-- | test/old/testdir/test_edit.vim | 4 | ||||
-rw-r--r-- | test/old/testdir/test_functions.vim | 2 | ||||
-rw-r--r-- | test/old/testdir/test_listdict.vim | 2 | ||||
-rw-r--r-- | test/old/testdir/test_normal.vim | 7 | ||||
-rw-r--r-- | test/old/testdir/test_substitute.vim | 2 | ||||
-rw-r--r-- | test/old/testdir/test_vimscript.vim | 6 | ||||
-rw-r--r-- | test/old/testdir/test_virtualedit.vim | 2 |
13 files changed, 20 insertions, 20 deletions
diff --git a/runtime/doc/insert.txt b/runtime/doc/insert.txt index 7571551130..0fa5ffd598 100644 --- a/runtime/doc/insert.txt +++ b/runtime/doc/insert.txt @@ -119,7 +119,7 @@ CTRL-R {register} *i_CTRL-R* '/' the last search pattern ':' the last command-line '.' the last inserted text - *i_CTRL-R_-* + *i_CTRL-R_-* '-' the last small (less than a line) delete register. This is repeatable using |.| since it remembers the register to put instead of diff --git a/runtime/doc/windows.txt b/runtime/doc/windows.txt index 842542bdc3..e0c0772f18 100644 --- a/runtime/doc/windows.txt +++ b/runtime/doc/windows.txt @@ -169,7 +169,7 @@ CTRL-W v *CTRL-W_v* it doesn't! CTRL-W n *CTRL-W_n* -CTRL-W CTRL_N *CTRL-W_CTRL-N* +CTRL-W CTRL-N *CTRL-W_CTRL-N* :[N]new [++opt] [+cmd] *:new* Create a new window and start editing an empty file in it. Make new window N high (default is to use half the existing diff --git a/runtime/ftplugin/zig.vim b/runtime/ftplugin/zig.vim index 2a081980cc..cfd7102b8d 100644 --- a/runtime/ftplugin/zig.vim +++ b/runtime/ftplugin/zig.vim @@ -39,7 +39,7 @@ endif let &l:define='\v(<fn>|<const>|<var>|^\s*\#\s*define)' -" Safety check: don't execute zip from current directory +" Safety check: don't execute zig from current directory if !exists('g:zig_std_dir') && exists('*json_decode') && \ executable('zig') && get(g:, 'zig_exec', get(g:, 'plugin_exec', 0)) \ && (fnamemodify(exepath("zig"), ":p:h") != s:tmp_cwd diff --git a/src/nvim/keycodes.c b/src/nvim/keycodes.c index f2391cc541..55cd22f181 100644 --- a/src/nvim/keycodes.c +++ b/src/nvim/keycodes.c @@ -919,7 +919,8 @@ char *replace_termcodes(const char *const from, const size_t from_len, char **co // Check for special <> keycodes, like "<C-S-LeftMouse>" if (do_special && ((flags & REPTERM_DO_LT) || ((end - src) >= 3 && strncmp(src, "<lt>", 4) != 0))) { - // Replace <SID> by K_SNR <script-nr> _. + // Change <SID>Func to K_SNR <script-nr> _Func. This name is used + // for script-local user functions. // (room: 5 * 6 = 30 bytes; needed: 3 + <nr> + 1 <= 14) if (end - src >= 4 && STRNICMP(src, "<SID>", 5) == 0) { if (sid_arg < 0 || (sid_arg == 0 && current_sctx.sc_sid <= 0)) { diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c index fd9efb1387..6182646fe7 100644 --- a/src/nvim/mbyte.c +++ b/src/nvim/mbyte.c @@ -1648,7 +1648,7 @@ bool utf_allow_break_before(int cc) 0x2021, // ‡ double dagger 0x2026, // … horizontal ellipsis 0x2030, // ‰ per mille sign - 0x2031, // ‱ per then thousand sign + 0x2031, // ‱ per the thousand sign 0x203c, // ‼ double exclamation mark 0x2047, // ⁇ double question mark 0x2048, // ⁈ question exclamation mark diff --git a/test/old/testdir/test_autocmd.vim b/test/old/testdir/test_autocmd.vim index 79f8ee43c1..0afa3417ec 100644 --- a/test/old/testdir/test_autocmd.vim +++ b/test/old/testdir/test_autocmd.vim @@ -2002,8 +2002,8 @@ endfunc " Test for BufUnload autocommand that unloads all the other buffers func Test_bufunload_all() let g:test_is_flaky = 1 - call writefile(['Test file Xxx1'], 'Xxx1', 'D')" - call writefile(['Test file Xxx2'], 'Xxx2', 'D')" + call writefile(['Test file Xxx1'], 'Xxx1', 'D') + call writefile(['Test file Xxx2'], 'Xxx2', 'D') let content =<< trim [CODE] func UnloadAllBufs() diff --git a/test/old/testdir/test_edit.vim b/test/old/testdir/test_edit.vim index 0f3c62a092..03796ad816 100644 --- a/test/old/testdir/test_edit.vim +++ b/test/old/testdir/test_edit.vim @@ -1235,7 +1235,7 @@ func Test_edit_LEFT_RIGHT() endfunc func Test_edit_MOUSE() - " This is a simple test, since we not really using the mouse here + " This is a simple test, since we're not really using the mouse here CheckFeature mouse 10new call setline(1, range(1, 100)) @@ -1817,7 +1817,7 @@ func Test_edit_charconvert() close! set charconvert& - " 'charconvert' function doesn't create a output file + " 'charconvert' function doesn't create an output file func Cconv1() endfunc set charconvert=Cconv1() diff --git a/test/old/testdir/test_functions.vim b/test/old/testdir/test_functions.vim index eff4e36f34..a811e01301 100644 --- a/test/old/testdir/test_functions.vim +++ b/test/old/testdir/test_functions.vim @@ -2630,7 +2630,7 @@ func Test_state() call term_sendkeys(buf, getstate) call WaitForAssert({-> assert_match('state: mSc; mode: n', term_getline(buf, 6))}, 1000) - " A operator is pending + " An operator is pending call term_sendkeys(buf, ":call RunTimer()\<CR>y") call TermWait(buf, 25) call term_sendkeys(buf, "y") diff --git a/test/old/testdir/test_listdict.vim b/test/old/testdir/test_listdict.vim index 0918e2cd98..fef7c6a9bc 100644 --- a/test/old/testdir/test_listdict.vim +++ b/test/old/testdir/test_listdict.vim @@ -346,7 +346,7 @@ func Test_dict_big() endtry call assert_equal('Vim(let):E716: "1500"', str) - " lookup each items + " lookup each item for i in range(1500) call assert_equal(3000 - i, d[i]) endfor diff --git a/test/old/testdir/test_normal.vim b/test/old/testdir/test_normal.vim index 08a3c57a94..3c21041899 100644 --- a/test/old/testdir/test_normal.vim +++ b/test/old/testdir/test_normal.vim @@ -347,7 +347,7 @@ func Test_normal06_formatprg() CheckNotMSWindows " uses sed to number non-empty lines - call writefile(['#!/bin/sh', 'sed ''/./=''|sed ''/./{', 'N', 's/\n/ /', '}'''], 'Xsed_format.sh') + call writefile(['#!/bin/sh', 'sed ''/./=''|sed ''/./{', 'N', 's/\n/ /', '}'''], 'Xsed_format.sh', 'D') call system('chmod +x ./Xsed_format.sh') let text = ['a', '', 'c', '', ' ', 'd', 'e'] let expected = ['1 a', '', '3 c', '', '5 ', '6 d', '7 e'] @@ -378,11 +378,10 @@ func Test_normal06_formatprg() " clean up set formatprg= setlocal formatprg= - call delete('Xsed_format.sh') endfunc func Test_normal07_internalfmt() - " basic test for internal formmatter to textwidth of 12 + " basic test for internal formatter to textwidth of 12 let list=range(1,11) call map(list, 'v:val." "') 10new @@ -2588,7 +2587,7 @@ func Test_normal33_g_cmd2() exe "norm! G0\<c-v>4k4ly" exe "norm! gvood" call assert_equal(['', 'abfgh', 'abfgh', 'abfgh', 'fgh', 'fgh', 'fgh', 'fgh', 'fgh'], getline(1,'$')) - " gv cannot be used in operator pending mode + " gv cannot be used in operator pending mode call assert_beeps('normal! cgv') " gv should beep without a previously selected visual area new diff --git a/test/old/testdir/test_substitute.vim b/test/old/testdir/test_substitute.vim index 0d59697b3a..8dff0cda52 100644 --- a/test/old/testdir/test_substitute.vim +++ b/test/old/testdir/test_substitute.vim @@ -1434,7 +1434,7 @@ func Test_substitute_expr_switch_win() let bufnr = bufnr('%') put ="abcdef" silent! s/\%')/\=R() - call assert_fails(':%s/./\=R()/g', 'E565') + call assert_fails(':%s/./\=R()/g', 'E565:') delfunc R exe bufnr .. "bw!" endfunc diff --git a/test/old/testdir/test_vimscript.vim b/test/old/testdir/test_vimscript.vim index 9b1b7f7b23..6ce59e1a2e 100644 --- a/test/old/testdir/test_vimscript.vim +++ b/test/old/testdir/test_vimscript.vim @@ -3109,7 +3109,7 @@ endfunc " should be given. " " This test reuses the function MESSAGES() from the previous test. -" This functions checks the messages in g:msgfile. +" This function checks the messages in g:msgfile. "------------------------------------------------------------------------------- func Test_nested_while_error() @@ -3236,7 +3236,7 @@ endfunc " error messages should be given. " " This test reuses the function MESSAGES() from the previous test. -" This functions checks the messages in g:msgfile. +" This function checks the messages in g:msgfile. "------------------------------------------------------------------------------- func Test_nested_cont_break_error() @@ -3344,7 +3344,7 @@ endfunc " should be given. " " This test reuses the function MESSAGES() from the previous test. -" This functions checks the messages in g:msgfile. +" This function check the messages in g:msgfile. "------------------------------------------------------------------------------- func Test_nested_endtry_error() diff --git a/test/old/testdir/test_virtualedit.vim b/test/old/testdir/test_virtualedit.vim index f97b3f987d..6ff51e36fb 100644 --- a/test/old/testdir/test_virtualedit.vim +++ b/test/old/testdir/test_virtualedit.vim @@ -236,7 +236,7 @@ func Test_ve_completion() set virtualedit= endfunc -" Using "C" then then <CR> moves the last remaining character to the next +" Using "C" then <CR> moves the last remaining character to the next " line. (Mary Ellen Foster) func Test_ve_del_to_eol() new |