Skip to content

Commit 6a2b5b2

Browse files
zeertzjqantonkesy
authored andcommitted
patch 9.1.2078: A few more typos in various files
Problem: A few more typos in various files Solution: Fix those (zeertzjq, antonkesy) related: neovim/neovim#37348 closes: #19153 Co-authored-by: Anton Kesy <anton@kesy.de> Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent f78629b commit 6a2b5b2

13 files changed

Lines changed: 18 additions & 16 deletions

File tree

runtime/autoload/dist/ft.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ vim9script
33
# Vim functions for file type detection
44
#
55
# Maintainer: The Vim Project <https://github.com/vim/vim>
6-
# Last Change: 2026 Jan 06
6+
# Last Change: 2026 Jan 11
77
# Former Maintainer: Bram Moolenaar <Bram@vim.org>
88

99
# These functions are moved here from runtime/filetype.vim to make startup
@@ -98,7 +98,7 @@ export def FTasmsyntax()
9898
b:asmsyntax = "masm"
9999
return
100100
elseif line =~ 'Texas Instruments Incorporated' || (line =~ '^\*' && !is_slash_star_encountered)
101-
# tiasm uses `* commment`, but detection is unreliable if '/*' is seen
101+
# tiasm uses `* comment`, but detection is unreliable if '/*' is seen
102102
b:asmsyntax = "tiasm"
103103
return
104104
elseif ((line =~? '\.title\>\|\.ident\>\|\.macro\>\|\.subtitle\>\|\.library\>'))
@@ -1506,7 +1506,7 @@ export def FTdsp()
15061506

15071507
# Test the file contents
15081508
for line in getline(1, 200)
1509-
# Chech for comment style
1509+
# Check for comment style
15101510
if line =~ '^#.*'
15111511
setf make
15121512
return

runtime/autoload/dist/vim.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
" Vim runtime support library,
22
" runs the Vim9 script version or legacy script version
3-
" on demand (mostly for Neovim compatability)
3+
" on demand (mostly for Neovim compatibility)
44
"
55
" Maintainer: The Vim Project <https://github.com/vim/vim>
6-
" Last Change: 2025 Apr 27
6+
" Last Change: 2026 Jan 11
77

88

99
" enable the zip and gzip plugin by default, if not set

runtime/filetype.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim support file to detect file types
22
"
33
" Maintainer: The Vim Project <https://github.com/vim/vim>
4-
" Last Change: 2026 Jan 02
4+
" Last Change: 2026 Jan 11
55
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
66

77
" If the filetype can be detected from extension or file name(the final path component),
@@ -1317,7 +1317,7 @@ au BufNewFile,BufRead *.dtml,*.pt,*.cpt call dist#ft#FThtml()
13171317
" zsql (zope sql method)
13181318
au BufNewFile,BufRead *.zsql call dist#ft#SQL()
13191319

1320-
" Detect by extention
1320+
" Detect by extension
13211321
au BufNewFile,BufRead * call dist#ft#DetectFromExt()
13221322
augroup END
13231323

runtime/pack/dist/opt/netrw/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ upstream for distribution with Vim.
1111

1212
# License
1313

14-
To see License informations see the LICENSE.txt file included in this
14+
To see License information see the LICENSE.txt file included in this
1515
repository.
1616

1717
# Credits

runtime/syntax/generator/vim.vim.base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ if s:vim9script
753753
" FIXME: don't match as dictionary keys, remove when operators are not
754754
" shared between Vim9 and legacy script
755755
syn match vim9This contained "\.\@1<!\<this\>:\@!"
756-
" super must be folowed by '.'
756+
" super must be followed by '.'
757757
syn match vim9Super contained "\.\@1<!\<super\.\@="
758758

759759
VimFoldc syn region vim9ClassBody start="\<class\>" matchgroup=vimCommand end="\<endclass\>" contains=@vim9ClassBodyList transparent

runtime/syntax/vim.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ if s:vim9script
808808
" FIXME: don't match as dictionary keys, remove when operators are not
809809
" shared between Vim9 and legacy script
810810
syn match vim9This contained "\.\@1<!\<this\>:\@!"
811-
" super must be folowed by '.'
811+
" super must be followed by '.'
812812
syn match vim9Super contained "\.\@1<!\<super\.\@="
813813

814814
VimFoldc syn region vim9ClassBody start="\<class\>" matchgroup=vimCommand end="\<endclass\>" contains=@vim9ClassBodyList transparent

src/diff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static long diff_algorithm = XDF_INDENT_HEURISTIC;
5252

5353
#define LBUFLEN 50 // length of line in diff file
5454

55-
// Max file size xdiff is eqipped to deal with. The value (1GB - 1MB) comes
55+
// Max file size xdiff is equipped to deal with. The value (1GB - 1MB) comes
5656
// from Git's implementation.
5757
#define MAX_XDIFF_SIZE (1024L * 1024 * 1023)
5858

src/testdir/test_listener.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ endfunc
777777
func s:OnRedraw()
778778
endfunc
779779

780-
" Test if partial is correctly ref'ed and doesn't cause use afte free error
780+
" Test if partial is correctly ref'ed and doesn't cause use after free error
781781
func Test_redraw_listener_partial()
782782
call redraw_listener_add(#{on_start: function("s:OnRedraw", [1])})
783783
endfunc

src/testdir/test_vim9_disassemble.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3808,7 +3808,7 @@ def Test_disassemble_tuple_concatenate()
38083808
unlet g:instr
38093809
enddef
38103810

3811-
" Disassemble the code generated for a constant tupe
3811+
" Disassemble the code generated for a constant tuple
38123812
def Test_disassemble_tuple_const()
38133813
var lines =<< trim END
38143814
vim9script

src/testdir/test_window_cmd.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1913,7 +1913,7 @@ func Test_splitkeep_cmdwin_cursor_position()
19131913
set splitkeep=screen
19141914
call setline(1, range(&lines))
19151915

1916-
" No scroll when cursor is at near bottom of window and cusor position
1916+
" No scroll when cursor is at near bottom of window and cursor position
19171917
" recompution (done by line('w0') in this test) happens while in cmdwin.
19181918
normal! G
19191919
let firstline = line('w0')

0 commit comments

Comments
 (0)