diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-14 06:39:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-14 06:39:47 +0800 |
commit | b2f7a3aaad72fa01dc1230f246c26d878f5a41a6 (patch) | |
tree | cec7ae585163c27780d0927d5c348037521b6722 | |
parent | 9f8c96240dc0318bd92a646966917e8fe0641144 (diff) | |
download | rneovim-b2f7a3aaad72fa01dc1230f246c26d878f5a41a6.tar.gz rneovim-b2f7a3aaad72fa01dc1230f246c26d878f5a41a6.tar.bz2 rneovim-b2f7a3aaad72fa01dc1230f246c26d878f5a41a6.zip |
vim-patch:9.1.0105: Style: typos found (#27462)
Problem: Style: typos found
Solution: correct them
(zeertzjq)
closes: vim/vim#14023
https://github.com/vim/vim/commit/e71022082d6a8bd8ec3d7b9dadf3f9ce46ef339c
-rw-r--r-- | src/nvim/regexp.c | 3 | ||||
-rw-r--r-- | test/old/testdir/test_mapping.vim | 2 | ||||
-rw-r--r-- | test/old/testdir/test_utf8_comparisons.vim | 2 | ||||
-rw-r--r-- | test/old/testdir/test_visual.vim | 2 |
4 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c index 37f672fc86..86082adbb6 100644 --- a/src/nvim/regexp.c +++ b/src/nvim/regexp.c @@ -1365,8 +1365,7 @@ static bool reg_match_visual(void) top = curbuf->b_visual.vi_end; bot = curbuf->b_visual.vi_start; } - // a substitue command may have - // removed some lines + // a substitute command may have removed some lines if (bot.lnum > curbuf->b_ml.ml_line_count) { bot.lnum = curbuf->b_ml.ml_line_count; } diff --git a/test/old/testdir/test_mapping.vim b/test/old/testdir/test_mapping.vim index a5bf1a0602..623228b347 100644 --- a/test/old/testdir/test_mapping.vim +++ b/test/old/testdir/test_mapping.vim @@ -108,7 +108,7 @@ func Test_map_langmap() unmap x bwipe! - " 'langnoremap' follows 'langremap' and vise versa + " 'langnoremap' follows 'langremap' and vice versa set langremap set langnoremap call assert_equal(0, &langremap) diff --git a/test/old/testdir/test_utf8_comparisons.vim b/test/old/testdir/test_utf8_comparisons.vim index 20b5762c9d..2c1972b087 100644 --- a/test/old/testdir/test_utf8_comparisons.vim +++ b/test/old/testdir/test_utf8_comparisons.vim @@ -93,7 +93,7 @@ func Test_gap() call assert_equal(["ABCD", "", "defg"], getline(1,3)) endfunc -" test that g~, ~ and gU correclty upper-cases ß +" test that g~, ~ and gU correctly upper-cases ß func Test_uppercase_sharp_ss() new call setline(1, repeat(['ß'], 4)) diff --git a/test/old/testdir/test_visual.vim b/test/old/testdir/test_visual.vim index 94b8009534..262a3a4fd9 100644 --- a/test/old/testdir/test_visual.vim +++ b/test/old/testdir/test_visual.vim @@ -1010,7 +1010,7 @@ endfunc " Test for changing case func Test_visual_change_case() new - " gUe must uppercase a whole word, also when ß changes to SS + " gUe must uppercase a whole word, also when ß changes to ẞ exe "normal Gothe youtußeuu end\<Esc>Ypk0wgUe\r" " gUfx must uppercase until x, inclusive. exe "normal O- youßtußexu -\<Esc>0fogUfx\r" |