From: zeertzjq Date: Sun, 11 Jan 2026 18:59:51 +0000 (+0000) Subject: patch 9.1.2078: A few more typos in various files X-Git-Tag: v9.1.2078^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a2b5b2246833f7922e38eabab7090e29e89c3a1;p=thirdparty%2Fvim.git 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 Signed-off-by: zeertzjq Signed-off-by: Christian Brabandt --- diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim index 20c8d2ec89..0a65aa9085 100644 --- a/runtime/autoload/dist/ft.vim +++ b/runtime/autoload/dist/ft.vim @@ -3,7 +3,7 @@ vim9script # Vim functions for file type detection # # Maintainer: The Vim Project -# Last Change: 2026 Jan 06 +# Last Change: 2026 Jan 11 # Former Maintainer: Bram Moolenaar # These functions are moved here from runtime/filetype.vim to make startup @@ -98,7 +98,7 @@ export def FTasmsyntax() b:asmsyntax = "masm" return elseif line =~ 'Texas Instruments Incorporated' || (line =~ '^\*' && !is_slash_star_encountered) - # tiasm uses `* commment`, but detection is unreliable if '/*' is seen + # tiasm uses `* comment`, but detection is unreliable if '/*' is seen b:asmsyntax = "tiasm" return elseif ((line =~? '\.title\>\|\.ident\>\|\.macro\>\|\.subtitle\>\|\.library\>')) @@ -1506,7 +1506,7 @@ export def FTdsp() # Test the file contents for line in getline(1, 200) - # Chech for comment style + # Check for comment style if line =~ '^#.*' setf make return diff --git a/runtime/autoload/dist/vim.vim b/runtime/autoload/dist/vim.vim index 1632aed2b6..5a0f350537 100644 --- a/runtime/autoload/dist/vim.vim +++ b/runtime/autoload/dist/vim.vim @@ -1,9 +1,9 @@ " Vim runtime support library, " runs the Vim9 script version or legacy script version -" on demand (mostly for Neovim compatability) +" on demand (mostly for Neovim compatibility) " " Maintainer: The Vim Project -" Last Change: 2025 Apr 27 +" Last Change: 2026 Jan 11 " enable the zip and gzip plugin by default, if not set diff --git a/runtime/filetype.vim b/runtime/filetype.vim index b6e4ac1bca..da5340a320 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1,7 +1,7 @@ " Vim support file to detect file types " " Maintainer: The Vim Project -" Last Change: 2026 Jan 02 +" Last Change: 2026 Jan 11 " Former Maintainer: Bram Moolenaar " 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() " zsql (zope sql method) au BufNewFile,BufRead *.zsql call dist#ft#SQL() -" Detect by extention +" Detect by extension au BufNewFile,BufRead * call dist#ft#DetectFromExt() augroup END diff --git a/runtime/pack/dist/opt/netrw/README.md b/runtime/pack/dist/opt/netrw/README.md index ecd97f1e9a..3677cf6cda 100644 --- a/runtime/pack/dist/opt/netrw/README.md +++ b/runtime/pack/dist/opt/netrw/README.md @@ -11,7 +11,7 @@ upstream for distribution with Vim. # License -To see License informations see the LICENSE.txt file included in this +To see License information see the LICENSE.txt file included in this repository. # Credits diff --git a/runtime/syntax/generator/vim.vim.base b/runtime/syntax/generator/vim.vim.base index ecb0b5c024..afde79fbbc 100644 --- a/runtime/syntax/generator/vim.vim.base +++ b/runtime/syntax/generator/vim.vim.base @@ -753,7 +753,7 @@ if s:vim9script " FIXME: don't match as dictionary keys, remove when operators are not " shared between Vim9 and legacy script syn match vim9This contained "\.\@1:\@!" - " super must be folowed by '.' + " super must be followed by '.' syn match vim9Super contained "\.\@1" matchgroup=vimCommand end="\" contains=@vim9ClassBodyList transparent diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim index 7f6c38e011..03f466c46e 100644 --- a/runtime/syntax/vim.vim +++ b/runtime/syntax/vim.vim @@ -808,7 +808,7 @@ if s:vim9script " FIXME: don't match as dictionary keys, remove when operators are not " shared between Vim9 and legacy script syn match vim9This contained "\.\@1:\@!" - " super must be folowed by '.' + " super must be followed by '.' syn match vim9Super contained "\.\@1" matchgroup=vimCommand end="\" contains=@vim9ClassBodyList transparent diff --git a/src/diff.c b/src/diff.c index 5f5376133e..79c6e3255e 100644 --- a/src/diff.c +++ b/src/diff.c @@ -52,7 +52,7 @@ static long diff_algorithm = XDF_INDENT_HEURISTIC; #define LBUFLEN 50 // length of line in diff file -// Max file size xdiff is eqipped to deal with. The value (1GB - 1MB) comes +// Max file size xdiff is equipped to deal with. The value (1GB - 1MB) comes // from Git's implementation. #define MAX_XDIFF_SIZE (1024L * 1024 * 1023) diff --git a/src/testdir/test_listener.vim b/src/testdir/test_listener.vim index d3475cbc45..91f0db2a15 100644 --- a/src/testdir/test_listener.vim +++ b/src/testdir/test_listener.vim @@ -777,7 +777,7 @@ endfunc func s:OnRedraw() endfunc -" Test if partial is correctly ref'ed and doesn't cause use afte free error +" Test if partial is correctly ref'ed and doesn't cause use after free error func Test_redraw_listener_partial() call redraw_listener_add(#{on_start: function("s:OnRedraw", [1])}) endfunc diff --git a/src/testdir/test_vim9_disassemble.vim b/src/testdir/test_vim9_disassemble.vim index f48f7a23c1..83499999da 100644 --- a/src/testdir/test_vim9_disassemble.vim +++ b/src/testdir/test_vim9_disassemble.vim @@ -3808,7 +3808,7 @@ def Test_disassemble_tuple_concatenate() unlet g:instr enddef -" Disassemble the code generated for a constant tupe +" Disassemble the code generated for a constant tuple def Test_disassemble_tuple_const() var lines =<< trim END vim9script diff --git a/src/testdir/test_window_cmd.vim b/src/testdir/test_window_cmd.vim index 2841a31278..02e6fcbc32 100644 --- a/src/testdir/test_window_cmd.vim +++ b/src/testdir/test_window_cmd.vim @@ -1913,7 +1913,7 @@ func Test_splitkeep_cmdwin_cursor_position() set splitkeep=screen call setline(1, range(&lines)) - " No scroll when cursor is at near bottom of window and cusor position + " No scroll when cursor is at near bottom of window and cursor position " recompution (done by line('w0') in this test) happens while in cmdwin. normal! G let firstline = line('w0') diff --git a/src/version.c b/src/version.c index fa5419db82..0e048c40f7 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2078, /**/ 2077, /**/ diff --git a/src/vim9compile.c b/src/vim9compile.c index b80eb346e2..c9976160e4 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -1098,7 +1098,7 @@ compile_nested_function(exarg_T *eap, cctx_T *cctx, garray_T *lines_to_free) fill_exarg_from_cctx(eap, cctx); eap->forceit = FALSE; - // We use the special 99 name, but it's not really a lambda. + // We use the special 99 name, but it's not really a lambda. lambda_name = get_lambda_name(); lambda_name.string = vim_strnsave(lambda_name.string, lambda_name.length); if (lambda_name.string == NULL) diff --git a/src/vim9generics.c b/src/vim9generics.c index 9820654263..86802c2014 100644 --- a/src/vim9generics.c +++ b/src/vim9generics.c @@ -572,7 +572,7 @@ parse_generic_func_type_params( return NULL; } - // set the generic parms to VAR_ANY type + // set the generic params to VAR_ANY type if (ga_grow(&gfatab->gfat_param_types, gfat_sz) == FAIL) return NULL;