mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
vim-patch:9.1.0105: Style: typos found (#27462)
Problem: Style: typos found
Solution: correct them
(zeertzjq)
closes: vim/vim#14023
e71022082d
This commit is contained in:
@@ -1365,8 +1365,7 @@ static bool reg_match_visual(void)
|
|||||||
top = curbuf->b_visual.vi_end;
|
top = curbuf->b_visual.vi_end;
|
||||||
bot = curbuf->b_visual.vi_start;
|
bot = curbuf->b_visual.vi_start;
|
||||||
}
|
}
|
||||||
// a substitue command may have
|
// a substitute command may have removed some lines
|
||||||
// removed some lines
|
|
||||||
if (bot.lnum > curbuf->b_ml.ml_line_count) {
|
if (bot.lnum > curbuf->b_ml.ml_line_count) {
|
||||||
bot.lnum = curbuf->b_ml.ml_line_count;
|
bot.lnum = curbuf->b_ml.ml_line_count;
|
||||||
}
|
}
|
||||||
|
@@ -108,7 +108,7 @@ func Test_map_langmap()
|
|||||||
unmap x
|
unmap x
|
||||||
bwipe!
|
bwipe!
|
||||||
|
|
||||||
" 'langnoremap' follows 'langremap' and vise versa
|
" 'langnoremap' follows 'langremap' and vice versa
|
||||||
set langremap
|
set langremap
|
||||||
set langnoremap
|
set langnoremap
|
||||||
call assert_equal(0, &langremap)
|
call assert_equal(0, &langremap)
|
||||||
|
@@ -93,7 +93,7 @@ func Test_gap()
|
|||||||
call assert_equal(["ABCD", "", "defg"], getline(1,3))
|
call assert_equal(["ABCD", "", "defg"], getline(1,3))
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" test that g~, ~ and gU correclty upper-cases ß
|
" test that g~, ~ and gU correctly upper-cases ß
|
||||||
func Test_uppercase_sharp_ss()
|
func Test_uppercase_sharp_ss()
|
||||||
new
|
new
|
||||||
call setline(1, repeat(['ß'], 4))
|
call setline(1, repeat(['ß'], 4))
|
||||||
|
@@ -1010,7 +1010,7 @@ endfunc
|
|||||||
" Test for changing case
|
" Test for changing case
|
||||||
func Test_visual_change_case()
|
func Test_visual_change_case()
|
||||||
new
|
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"
|
exe "normal Gothe youtußeuu end\<Esc>Ypk0wgUe\r"
|
||||||
" gUfx must uppercase until x, inclusive.
|
" gUfx must uppercase until x, inclusive.
|
||||||
exe "normal O- youßtußexu -\<Esc>0fogUfx\r"
|
exe "normal O- youßtußexu -\<Esc>0fogUfx\r"
|
||||||
|
Reference in New Issue
Block a user