0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 9.1.0105: Style: typos found

Problem:  Style: typos found
Solution: correct them
          (zeertzjq)

closes: #14023

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2024-02-13 20:32:04 +01:00
committed by Christian Brabandt
parent 2f9aef42af
commit e71022082d
7 changed files with 10 additions and 9 deletions

View File

@@ -1318,8 +1318,7 @@ 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;
mode = curbuf->b_visual.vi_mode; mode = curbuf->b_visual.vi_mode;

View File

@@ -120,7 +120,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)

View File

@@ -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))

View File

@@ -67,7 +67,7 @@ def Test_class_basic()
END END
v9.CheckSourceFailure(lines, "E488: Trailing characters: | echo 'done'", 3) v9.CheckSourceFailure(lines, "E488: Trailing characters: | echo 'done'", 3)
# Use old "this." prefixed member variable declaration syntax (without intialization) # Use old "this." prefixed member variable declaration syntax (without initialization)
lines =<< trim END lines =<< trim END
vim9script vim9script
class Something class Something
@@ -76,7 +76,7 @@ def Test_class_basic()
END END
v9.CheckSourceFailure(lines, 'E1318: Not a valid command in a class: this.count: number', 3) v9.CheckSourceFailure(lines, 'E1318: Not a valid command in a class: this.count: number', 3)
# Use old "this." prefixed member variable declaration syntax (with intialization) # Use old "this." prefixed member variable declaration syntax (with initialization)
lines =<< trim END lines =<< trim END
vim9script vim9script
class Something class Something

View File

@@ -641,7 +641,7 @@ def Test_type_as_func_argument_or_return_value()
END END
v9.CheckScriptFailure(lines, 'E1407: Cannot use a Typealias as a variable or value', 1) v9.CheckScriptFailure(lines, 'E1407: Cannot use a Typealias as a variable or value', 1)
# check defered function using typealias as arg # check deferred function using typealias as arg
lines =<< trim END lines =<< trim END
vim9script vim9script
type A = number type A = number
@@ -764,7 +764,7 @@ def Test_class_as_func_argument_or_return_value()
END END
v9.CheckScriptFailure(lines, 'E1405: Class "C" cannot be used as a value', 1) v9.CheckScriptFailure(lines, 'E1405: Class "C" cannot be used as a value', 1)
# check defered function using class typealias as arg # check deferred function using class typealias as arg
lines =<< trim END lines =<< trim END
vim9script vim9script
class C class C

View File

@@ -1008,7 +1008,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"

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
105,
/**/ /**/
104, 104,
/**/ /**/