Skip to content

Commit c029c13

Browse files
zeertzjqchrisbra
authored andcommitted
patch 9.1.0220: Few typos in source and test files
Problem: Typos in code and tests. Solution: Fix typos (zeertzjq). closes: #14321 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 3164cf8 commit c029c13

File tree

11 files changed

+13
-11
lines changed

11 files changed

+13
-11
lines changed

src/misc1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2172,7 +2172,7 @@ init_users(void)
21722172
}
21732173

21742174
/*
2175-
* Function given to ExpandGeneric() to obtain an user names.
2175+
* Function given to ExpandGeneric() to obtain user names.
21762176
*/
21772177
char_u*
21782178
get_users(expand_T *xp UNUSED, int idx)

src/testdir/test_buffer.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func Test_bdelete_cmd()
133133
call assert_fails('1,1bdelete 1 2', 'E488:')
134134
call assert_fails('bdelete \)', 'E55:')
135135

136-
" Deleting a unlisted and unloaded buffer
136+
" Deleting an unlisted and unloaded buffer
137137
edit Xbdelfile1
138138
let bnr = bufnr()
139139
set nobuflisted

src/testdir/test_history.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ func Test_history_crypt_key()
254254
set key& bs& ts&
255255
endfunc
256256

257-
" The following used to overflow and causing an use-after-free
257+
" The following used to overflow and causing a use-after-free
258258
func Test_history_max_val()
259259

260260
set history=10

src/testdir/test_ins_complete.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ func Test_complete_wholeline_unlistedbuf()
11301130
edit Xfile1
11311131
enew
11321132
set complete=U
1133-
" completing from a unloaded buffer should fail
1133+
" completing from an unloaded buffer should fail
11341134
exe "normal! ia\<C-X>\<C-L>\<C-P>"
11351135
call assert_equal('a', getline(1))
11361136
%d

src/testdir/test_mksession.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,11 +708,11 @@ endfunc
708708

709709
func Test_mkview_no_file_name()
710710
new
711-
" :mkview or :mkview {nr} should fail in a unnamed buffer.
711+
" :mkview or :mkview {nr} should fail in an unnamed buffer.
712712
call assert_fails('mkview', 'E32:')
713713
call assert_fails('mkview 1', 'E32:')
714714

715-
" :mkview {file} should succeed in a unnamed buffer.
715+
" :mkview {file} should succeed in an unnamed buffer.
716716
mkview Xview
717717
help
718718
source Xview

src/testdir/test_recover.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ func Test_recover_encrypted_swap_file()
380380
call delete('Xfile1')
381381
endfunc
382382

383-
" Test for :recover using a unreadable swap file
383+
" Test for :recover using an unreadable swap file
384384
func Test_recover_unreadable_swap_file()
385385
CheckUnix
386386
CheckNotRoot

src/testdir/test_regexp_latin.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ func Regex_Mark()
874874
%d
875875
endfunc
876876

877-
" Same test as abobe, but use verymagic
877+
" Same test as above, but use verymagic
878878
func Regex_Mark_Verymagic()
879879
call append(0, ['', '', '', 'Marks:', 'asdfSasdfsadfEasdf', 'asdfSas',
880880
\ 'dfsadfEasdf', '', '', '', '', ''])

src/testdir/test_vim9_script.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4906,7 +4906,7 @@ def Test_for_stmt_space_before_type()
49064906
v9.CheckSourceFailure(lines, 'E1059: No white space allowed before colon: :number in range(10)', 2)
49074907
enddef
49084908

4909-
" This test used to cause an use-after-free memory access
4909+
" This test used to cause a use-after-free memory access
49104910
def Test_for_empty_line_after_lambda()
49114911
var lines =<< trim END
49124912
vim9script

src/testdir/test_visual.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ func Test_visual_inner_block()
11491149
" try to select non-existing inner block
11501150
call cursor(5, 1)
11511151
call assert_beeps('normal ViBiBiB')
1152-
" try to select a unclosed inner block
1152+
" try to select an unclosed inner block
11531153
8,9d
11541154
call cursor(5, 1)
11551155
call assert_beeps('normal ViBiB')

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
220,
707709
/**/
708710
219,
709711
/**/

0 commit comments

Comments
 (0)