]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
6 months agopatch 9.1.1079: GUI late startup leads to uninitialized scrollbars v9.1.1079
Yee Cheng Chin [Thu, 6 Feb 2025 20:18:17 +0000 (21:18 +0100)] 
patch 9.1.1079: GUI late startup leads to uninitialized scrollbars

Problem:  GUI late startup leads to uninitialized scrollbars
Solution: initialize scrollbars for all windows in all tabpages
          (Yee Cheng Chin)

GUI startup was erroneously only initializing scrollbars for all windows
in current tab, instead of all tabs. This breaks if the user has created
tab pages before using `:gui` command to enter GUI mode, or sourced a
session file in vimrc.

closes: #16588
related: macvim-dev/macvim#862

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(misc): Add support for lz4 to tar & gzip plugin
Corpulent Robin [Thu, 6 Feb 2025 20:10:49 +0000 (21:10 +0100)] 
runtime(misc): Add support for lz4 to tar & gzip plugin

while at it, clean up the tar plugin a bit and sort the patterns for the
tar and gzip plugin

References:
- https://github.com/lz4/lz4
- https://lz4.org/

closes: #16591

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Corpulent Robin <177767857+corpulentrobin@users.noreply.github.com>
6 months agopatch 9.1.1078: Terminal ansi colors off by one after tgc reset v9.1.1078
Julio B [Thu, 6 Feb 2025 19:31:27 +0000 (20:31 +0100)] 
patch 9.1.1078: Terminal ansi colors off by one after tgc reset

Problem:  Terminal ansi colors off by one after tgc reset
Solution: Set the correct index for libvterm palette,
          revert parts in libvterm/src/pen.c that deviated from upstream
          (Julio B)

fixes: #16568
closes: #16573
related: Vim patch v8.2.0804

Co-authored-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Julio B <julio.bacel@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1077: included syntax items do not understand contains=TOP v9.1.1077
Theodore Dubois [Wed, 5 Feb 2025 22:59:25 +0000 (23:59 +0100)] 
patch 9.1.1077: included syntax items do not understand contains=TOP

Problem:  Syntax engine interpreted contains=TOP as matching nothing
          inside included files, since :syn-include forces HL_CONTAINED
          on for every included item. After 8.2.2761, interprets
          contains=TOP as contains=@INCLUDED, which is also not correct
          since it doesn't respect exclusions, and doesn't work if there
          is no @INCLUDED cluster.
Solution: revert patch 8.2.2761, instead track groups that have had
          HL_CONTAINED forced, and interpret contains=TOP and
          contains=CONTAINED using this. (Theodore Dubois)

fixes: #11277
closes: #16571

Signed-off-by: Theodore Dubois <tblodt@icloud.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1076: vim_strnchr() is strange and unnecessary v9.1.1076
zeertzjq [Tue, 4 Feb 2025 15:48:36 +0000 (16:48 +0100)] 
patch 9.1.1076: vim_strnchr() is strange and unnecessary

Problem:  vim_strnchr() is strange and unnecessary (after v9.1.1009)
Solution: Remove vim_strnchr() and use memchr() instead.  Also remove a
          comment referencing an #if that is no longer present.

vim_strnchr() is strange in several ways:
- It's named like vim_strchr(), but unlike vim_strchr() it doesn't
  support finding a multibyte char.
- Its logic is similar to vim_strbyte(), but unlike vim_strbyte() it
  uses char instead of char_u.
- It takes a pointer as its size argument, which isn't convenient for
  all its callers.
- It allows embedded NULs, unlike other "strn*" functions which stop
  when encountering a NUL byte.

In comparison, memchr() also allows embedded NULs, and it converts bytes
in the string to (unsigned char).

closes: #16579

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1075: Vim9: len variable not used in compile_load() v9.1.1075
Hirohito Higashi [Tue, 4 Feb 2025 15:37:19 +0000 (16:37 +0100)] 
patch 9.1.1075: Vim9: len variable not used in compile_load()

Problem:  Vim9: length variable not used in compile_load()
Solution: use len instead of re-calculating the length
          (Hirohito Higashi)

closes: #16582

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(vim): Update base-syntax, match :debuggreedy count prefix
Doug Kearns [Mon, 3 Feb 2025 17:59:09 +0000 (18:59 +0100)] 
runtime(vim): Update base-syntax, match :debuggreedy count prefix

Match :0debuggreedy as a special case until better range/count support
is implemented.

closes: #16572

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1074: Strange error when heredoc marker starts with "trim" v9.1.1074
zeertzjq [Mon, 3 Feb 2025 17:56:16 +0000 (18:56 +0100)] 
patch 9.1.1074: Strange error when heredoc marker starts with "trim"

Problem:  Strange error when heredoc marker starts with "trim".
Solution: Check for whitespace after "trim" or "eval" (zeertzjq)

For :python3 etc., a heredoc marker that starts with a lower-case letter
is valid, and when it starts with "trim" it works in a script but not in
a function, and this PR makes it works in a function.
For :let, a heredoc marker that starts with a lower-case letter is not
valid, but when it starts with "trim" or "eval" the error can be a bit
confusing in a function, and this PR make it less confusing.

closes: #16574

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1073: tests: test_compiler fails on Windows without Maven v9.1.1073
zeertzjq [Mon, 3 Feb 2025 17:53:28 +0000 (18:53 +0100)] 
patch 9.1.1073: tests: test_compiler fails on Windows without Maven

Problem:  tests: test_compiler fails on Windows without Maven.
Solution: Add Xspotbugs directory to $PATH when mvn is not available
          (zeertzjq).

closes: #16576

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1072: 'diffopt' "linematch" cannot be used with {n} less than 10 v9.1.1072
zeertzjq [Mon, 3 Feb 2025 17:49:49 +0000 (18:49 +0100)] 
patch 9.1.1072: 'diffopt' "linematch" cannot be used with {n} less than 10

Problem:  'diffopt' "linematch" cannot be used with {n} less than 10
          digits (after v9.1.1022)
Solution: Fix off-by-one error when checking for digit (zeertzjq)

closes: #16577

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1071: args missing after failing to redefine a function v9.1.1071
zeertzjq [Sun, 2 Feb 2025 18:03:17 +0000 (19:03 +0100)] 
patch 9.1.1071: args missing after failing to redefine a function

Problem:  Arguments of a function are missing after failing to redefine
          it (after 8.2.2505), and heap-use-after-free with script-local
          function (after 9.1.1063).
Solution: Don't clear arguments or free uf_name_exp when failing to
          redefine an existing function (zeertzjq)

closes: #16567

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1070: Cannot control cursor positioning of getchar() v9.1.1070
zeertzjq [Sun, 2 Feb 2025 18:01:01 +0000 (19:01 +0100)] 
patch 9.1.1070: Cannot control cursor positioning of getchar()

Problem:  Cannot control cursor positioning of getchar().
Solution: Add "cursor" flag to {opts}, with possible values "hide",
          "keep" and "msg".

related: #10603
closes: #16569

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1069: preinsert text completions not deleted with <C-W>/<C-U> v9.1.1069
glepnir [Sun, 2 Feb 2025 08:36:22 +0000 (09:36 +0100)] 
patch 9.1.1069: preinsert text completions not deleted with <C-W>/<C-U>

Problem:  preinsert text completions not deleted with <C-W>/<C-U>
          (ddad431, after v9.1.1059)
Solution: handle <C-W> or <C-U> specifically and clear the completion
          (glepnir)

fixes: #16557
closes: #16565

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1068: getchar() can't distinguish between C-I and Tab v9.1.1068
zeertzjq [Sun, 2 Feb 2025 08:14:35 +0000 (09:14 +0100)] 
patch 9.1.1068: getchar() can't distinguish between C-I and Tab

Problem:  getchar() can't distinguish between C-I and Tab.
Solution: Add {opts} to pass extra flags to getchar() and getcharstr(),
          with "number" and "simplify" keys.

related: #10603
closes: #16554

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoCI: bump windows python to 3.13
Philip H. [Sun, 2 Feb 2025 08:07:36 +0000 (09:07 +0100)] 
CI: bump windows python to 3.13

closes: #16562

Signed-off-by: Philip H. <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1067: tests: Test_termwinscroll_topline2 fails on MacOS v9.1.1067
Christian Brabandt [Sun, 2 Feb 2025 08:03:00 +0000 (09:03 +0100)] 
patch 9.1.1067: tests: Test_termwinscroll_topline2 fails on MacOS

Problem:  tests: Test_termwinscroll_topline2 fails on MacOS
          (after v9.1.1062)
Solution: reduce termwinscroll further, increase term_wait time

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1066: heap-use-after-free and stack-use-after-scope with :14verbose v9.1.1066
zeertzjq [Sun, 2 Feb 2025 07:55:57 +0000 (08:55 +0100)] 
patch 9.1.1066: heap-use-after-free and stack-use-after-scope with :14verbose

Problem:  heap-use-after-free and stack-use-after-scope with :14verbose
          when using :return and :try (after 9.1.1063).
Solution: Move back the vim_free(tofree) and the scope of numbuf[].
          (zeertzjq)

closes: #16563

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1065: no digraph for "Approaches the limit" v9.1.1065
Hans Ginzel [Sat, 1 Feb 2025 15:15:11 +0000 (16:15 +0100)] 
patch 9.1.1065: no digraph for "Approaches the limit"

Problem:  no digraph for "Approaches the limit"
Solution: Add the digraph using .= (Hans Ginzel)

Add digraph Approaches the Limit

≐ U+2250 https://www.fileformat.info/info/unicode/char/2250/index.htm

closes: #16508

Signed-off-by: Hans Ginzel <hans@matfyz.cz>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1064: not possible to use plural forms with gettext() v9.1.1064
Christ van Willegen [Sat, 1 Feb 2025 14:42:16 +0000 (15:42 +0100)] 
patch 9.1.1064: not possible to use plural forms with gettext()

Problem:  not possible to use plural forms with gettext()
Solution: implement ngettext() Vim script function (Christ van Willegen)

closes: #16561

Signed-off-by: Christ van Willegen <cvwillegen@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1063: too many strlen() calls in userfunc.c v9.1.1063
John Marriott [Sat, 1 Feb 2025 14:25:34 +0000 (15:25 +0100)] 
patch 9.1.1063: too many strlen() calls in userfunc.c

Problem:  too many strlen() calls in userfunc.c
Solution: refactor userfunc.c and remove calls to strlen(),
          drop set_ufunc_name() and roll it into alloc_ufunc(),
          check for out-of-memory condition in trans_function_name_ext()
          (John Marriott)

closes: #16537

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1062: terminal: E315 when dragging the terminal with the mouse v9.1.1062
Hirohito Higashi [Sat, 1 Feb 2025 13:48:35 +0000 (14:48 +0100)] 
patch 9.1.1062: terminal: E315 when dragging the terminal with the mouse

Problem:  terminal: E315 when dragging the terminal with the mouse
          (user202729)
Solution: call update_topline() and validate_cursor() when clicking
          on the status line with the mouse (Hirohito Higashi)

fixes: #16024
fixes: #16211
closes: #16552

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(openPlugin): fix unclosed parenthesis in GetWordUnderCursor()
Morton Fox [Sat, 1 Feb 2025 09:28:52 +0000 (10:28 +0100)] 
runtime(openPlugin): fix unclosed parenthesis in GetWordUnderCursor()

Problem:

Saw the following error when invoking gx mapping with cursor on a URL:

    Error detected while compiling function <SNR>95_GetWordUnderCursor:
    line    7:
    E1123: Missing comma before argument: return expand(user_var)
    E116: Invalid arguments for function dist#vim9#Open

Solution:

The line before "return expand(...)" has two open parentheses but only
one close parenthesis. Add another close parenthesis.

closes: #16553

Signed-off-by: Morton Fox <github@qslw.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(doc): Tweak documentation style a bit
Hirohito Higashi [Sat, 1 Feb 2025 09:26:58 +0000 (10:26 +0100)] 
runtime(doc): Tweak documentation style a bit

closes: #16556

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
6 months agopatch 9.1.1061: tests: test_glvs fails when unarchiver not available v9.1.1061
Christian Brabandt [Fri, 31 Jan 2025 16:02:32 +0000 (17:02 +0100)] 
patch 9.1.1061: tests: test_glvs fails when unarchiver not available

Problem:  tests: test_glvs fails when unarchiver not available
          (Brian L. Matthews)
Solution: Check if an unarchiver is available, skip the test otherwise

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1060: Vim always enables 'termguicolors' in a terminal v9.1.1060
Christian Brabandt [Fri, 31 Jan 2025 15:13:14 +0000 (16:13 +0100)] 
patch 9.1.1060: Vim always enables 'termguicolors' in a terminal

Problem:  Vim always enables 'termguicolors' in a terminal, even
          when not wanted (after v9.1.1054)
Solution: Respect `:set notermguicolors` in vimrc file

fixes: #16538
fixes: #16539
closes: #16540

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1059: completion: input text deleted with preinsert when adding leader v9.1.1059
glepnir [Fri, 31 Jan 2025 14:28:29 +0000 (15:28 +0100)] 
patch 9.1.1059: completion: input text deleted with preinsert when adding leader

Problem:  completion: input text deleted with preinsert when adding leader
Solution: remove compl_length and check the ptr for being equal
          to pattern when preinsert is active (glepnir)

closes: #16545

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1058: translation(sr): Missing Serbian translation for the tutor v9.1.1058
Ivan Pešić [Fri, 31 Jan 2025 14:20:03 +0000 (15:20 +0100)] 
patch 9.1.1058: translation(sr): Missing Serbian translation for the tutor

Problem:  translation(sr): Missing Serbian translation for the tutor
Solution: include new Serbian translation for the new tutor,
          include translation for chapter 2 of the traditional tutor,
          update the Makefiles for installing the runtime files
          (Ivan Pešić)

closes: #16550

Signed-off-by: Ivan Pešić <27575106+eevan78@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1057: Superfluous cleanup steps in test_ins_complete.vim v9.1.1057
zeertzjq [Thu, 30 Jan 2025 10:04:47 +0000 (11:04 +0100)] 
patch 9.1.1057: Superfluous cleanup steps in test_ins_complete.vim

Problem:  Superfluous cleanup steps in test_ins_complete.vim.
Solution: Remove unnecessary :bw! and :autocmd! commands.
          Also remove unnecessary STRLEN() in insexpand.c
          (zeertzjq)

closes: #16542

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(netrw): correct wrong version check
Christian Brabandt [Thu, 30 Jan 2025 09:58:07 +0000 (10:58 +0100)] 
runtime(netrw): correct wrong version check

The version check introduced with commit edd4ac3e8 has a logic error.
Also it should only trigger when trying to use the netrw plugin and not
always.

fixes: #16541

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1056: Vim doesn't highlight to be inserted text when completing v9.1.1056
glepnir [Wed, 29 Jan 2025 17:53:51 +0000 (18:53 +0100)] 
patch 9.1.1056: Vim doesn't highlight to be inserted text when completing

Problem:  Vim doesn't highlight to be inserted text when completing
Solution: Add support for the "preinsert" 'completeopt' value
          (glepnir)

Support automatically inserting the currently selected candidate word
that does not belong to the latter part of the leader.

fixes: #3433
closes: #16403

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(netrw): upstream snapshot of v176
Luca Saccarola [Wed, 29 Jan 2025 17:39:30 +0000 (18:39 +0100)] 
runtime(netrw): upstream snapshot of v176

relevant commits:
- deprecate!: netrw#Launch, netrw#Open and gx mappings
- refactor: move some utility functions in a private file
- feat: add function to deprecate features
- refactor!: remove NetrwClean command and function
- refactor: use appropriate directories to store temporary files
- refactor: better way to call vim.ui.open
- refactor(Open): prefer lua wrapper function instead of cmdline
- refactor!: drop vim 7 checks
- refactor: use vim.ui.open when using neovim
- refactor: remove s:CheckIfKde
- refactor: balloon functionality
- refactor!: remove netrw#Access function

closes: #16519

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(dist/vim9): fix regressions in dist#vim9#Open
Luca Saccarola [Wed, 29 Jan 2025 17:33:46 +0000 (18:33 +0100)] 
runtime(dist/vim9): fix regressions in dist#vim9#Open

fixes: #16533
fixes: #16532
closes: #16535

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(hyprlang): fix string recognition
Luca Saccarola [Wed, 29 Jan 2025 09:27:55 +0000 (10:27 +0100)] 
runtime(hyprlang): fix string recognition

fixes: #16064
closes: #16527

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1055: make install fails because of a missing dependency v9.1.1055
Sergei Trofimovich [Tue, 28 Jan 2025 10:37:52 +0000 (11:37 +0100)] 
patch 9.1.1055: make install fails because of a missing dependency

Problem:  make install fails because of a missing dependency
Solution: add explicit dependencies for tutor/{en,it}
          (Sergei Trofimovich)

Without the change `make install -j16` fails
sometimes due to race condition to create a directory.

It's best reproducible with `make --shuffle`:

    $ make install --shuffle
    ...
    bash install-sh -c -d /vim-9.1.0990/share/vim/vim91/tutor
    chmod 755 /vim-9.1.0990/share/vim/vim91/tutor
    cp ../runtime/tutor/README* ../runtime/tutor/tutor* /vim-9.1.0990/share/vim/vim91/tutor
    cp ../runtime/tutor/en/* /vim-9.1.0990/share/vim/vim91/tutor/en/
    cp: target '/vim-9.1.0990/share/vim/vim91/tutor/en/': No such file or directory
    make[1]: [Makefile:2487: installtutor] Error 1 (ignored) shuffle=2340321974
    cp ../runtime/tutor/it/* /vim-9.1.0990/share/vim/vim91/tutor/it/
    cp: target '/vim-9.1.0990/share/vim/vim91/tutor/it/': No such file or directory
    make[1]: [Makefile:2488: installtutor] Error 1 (ignored) shuffle=2340321974

The fix adds a dependency on targeted directories used to install tutor.

Before the change it too 2-3 attempts to reproduce the install failure.
After the change `vim` survives 150 install attempts without failures.

closes: #16531

Signed-off-by: Sergei Trofimovich <slyich@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(asm): add byte directives to syntax script
Nir Lichtman [Sun, 26 Jan 2025 15:55:54 +0000 (16:55 +0100)] 
runtime(asm): add byte directives to syntax script

closes: #16523

Signed-off-by: Nir Lichtman <nir@lichtman.org>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1054: Vim doesn't work well with TERM=xterm-direct v9.1.1054
Christian Brabandt [Sun, 26 Jan 2025 09:49:59 +0000 (10:49 +0100)] 
patch 9.1.1054: Vim doesn't work well with TERM=xterm-direct

Problem:  Vim doesn't work well with TERM=xterm-direct
          (Andrea Pappacoda)
Solution: detect if a terminal supports true-colors and
          enable termguicolors

The terminfo database for xterm-direct contains both the (non-standard)
termcap RGB capability and a number of colors == 0x1000000 so it seems
either of those two options can be used to detect a terminal capable of
displaying true colors.

So set the termguicolor option automatically, when either of the two
options is detected. (for some reasons, my debian xterm (v393) does not
respond to XTGETTCAP query attempts, so falling back to the number of
colors seems like a good compromize)

fixes: #16327
closes: #16490

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(filetype): commit 99181205c5f8284a3 breaks V lang detection
Christian Brabandt [Sat, 25 Jan 2025 15:18:51 +0000 (16:18 +0100)] 
runtime(filetype): commit 99181205c5f8284a3 breaks V lang detection

so make the regex more strict and have it check for a parenthesis.

See:
https://github.com/vlang/v/blob/master/examples/submodule/mymodules/submodule/sub_functions.v

related: #16513

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime: decouple Open and Launch commands and gx mapping from netrw
Luca Saccarola [Sat, 25 Jan 2025 15:07:12 +0000 (16:07 +0100)] 
runtime: decouple Open and Launch commands and gx mapping from netrw

closes: #16494
fixes: ##16486

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1053: "nosort" enables fuzzy filtering even if "fuzzy" isn't in 'completeopt' v9.1.1053
zeertzjq [Sat, 25 Jan 2025 14:29:03 +0000 (15:29 +0100)] 
patch 9.1.1053: "nosort" enables fuzzy filtering even if "fuzzy" isn't in 'completeopt'

Problem:  "nosort" enables fuzzy filtering even if "fuzzy" isn't in
          'completeopt' (after v9.1.1049)
Solution: Only enable fuzzy filtering when "fuzzy" is in 'completeopt'.
          (zeertzjq)

closes: #16510

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(just): fix typo in syntax file
Peter Benjamin [Sat, 25 Jan 2025 14:26:09 +0000 (15:26 +0100)] 
runtime(just): fix typo in syntax file

closes: #16515

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(filetype): Improve Verilog detection by checking for modules definition
Christian Brabandt [Sat, 25 Jan 2025 13:54:28 +0000 (14:54 +0100)] 
runtime(filetype): Improve Verilog detection by checking for modules definition

While at it, also increase the maximum number of lines to check to 500.

fixes: #16513

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1052: tests: off-by-one error in CheckCWD in test_debugger.vim v9.1.1052
Yee Cheng Chin [Sat, 25 Jan 2025 14:14:06 +0000 (15:14 +0100)] 
patch 9.1.1052: tests: off-by-one error in CheckCWD in test_debugger.vim

Problem:  tests: off-by-one error in CheckCWD in test_debugger.vim
Solution: Fix off-by-one in CheckCWD leading to local tests failure
          (Yee Cheng Chin)

Vim's test_debugger's Test_debug_backtrace_level test will fail if you
happen to run it in a Vim repository with full path of directory being
exactly 29 characters (e.g. `/Users/bob/developing/src/vim`). The test
does term dump comparison and the printout will overflow if the CWD is
too long. It does have a function to skip to test if it detects that but
it's off by one leading to this one situation where it will fail.

The reason why the logic didn't account for this is that Vim's message
printing will overflow the text if it prints a message at exactly the
width of the terminal. This could be considered a bug / quirk but that
will be another issue.

closes: #16517

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1051: tests: no support for env variables when running Vim in terminal v9.1.1051
Christian Brabandt [Sat, 25 Jan 2025 14:01:42 +0000 (15:01 +0100)] 
patch 9.1.1051: tests: no support for env variables when running Vim in terminal

Problem:  tests: no support for env variables when running Vim in
          terminal
Solution: support the "env" argument in RunVimInTerminal(),
          close swapfiles properly in test_termcodes,
          use CheckFeature in test_termencoding

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1050: too many strlen() calls in os_unix.c v9.1.1050
John Marriott [Thu, 23 Jan 2025 19:05:29 +0000 (20:05 +0100)] 
patch 9.1.1050: too many strlen() calls in os_unix.c

Problem:  too many strlen() calls in os_unix.c
Solution: refactor os_unix.c and remove calls to strlen()
          (John Marriott)

closes: #16496

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1049: insert-completed items are always sorted v9.1.1049
glepnir [Thu, 23 Jan 2025 18:55:14 +0000 (19:55 +0100)] 
patch 9.1.1049: insert-completed items are always sorted

Problem:  insert-completed items are always sorted, although the LSP
          spec[1] standard defines sortText in the returned
          completionitem list. This means that the server has sorted the
          results. When fuzzy is enabled, this will break the server's
          sorting results.
Solution: disable sorting of candidates when "nosort" is set in
          'completeopt'

[1]
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#completionItem

closes: #16501

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1048: crash after scrolling and pasting in silent Ex mode v9.1.1048
zeertzjq [Wed, 22 Jan 2025 21:27:30 +0000 (22:27 +0100)] 
patch 9.1.1048: crash after scrolling and pasting in silent Ex mode

Problem:  Crash after scrolling and pasting in silent Ex mode.
          (fizz-is-on-the-way)
Solution: Don't move cursor to line 0 when scrolling.
          (zeertzjq)

closes: #16506

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1047: Makefiles uses non-portable syntax v9.1.1047
Christian Brabandt [Wed, 22 Jan 2025 21:21:50 +0000 (22:21 +0100)] 
patch 9.1.1047: Makefiles uses non-portable syntax

Problem:  Makefiles uses non-portable syntax
          (simo-zz, after v9.1.1029)
Solution: Revert auto-generation of MAJOR/MINOR variables

fixes: #16502
closes: #16503

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1046: fuzzymatching doesn't prefer matching camelcase v9.1.1046
glepnir [Tue, 21 Jan 2025 21:33:13 +0000 (22:33 +0100)] 
patch 9.1.1046: fuzzymatching doesn't prefer matching camelcase

Problem:  fuzzymatching doesn't prefer matching camelcase
          (Tomasz N)
Solution: Add extra score when case matches (glepnir)

fixes: #16434
closes: #16439

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1045: filetype: N-Tripels and TriG files are not recognized v9.1.1045
Gordian Dziwis [Tue, 21 Jan 2025 21:24:23 +0000 (22:24 +0100)] 
patch 9.1.1045: filetype: N-Tripels and TriG files are not recognized

Problem:  filetype: N-Tripels and TriG files are not recognized
Solution: detect '*.nt' files as ntriples filetype and '*.trig' files
          as trig filetype (Gordian Dziwis)

closes: #16493

Signed-off-by: Gordian Dziwis <gordian@dziw.is>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1044: Vim9: Patch 9.1.1014 causes regressions v9.1.1044
Christian Brabandt [Tue, 21 Jan 2025 21:17:50 +0000 (22:17 +0100)] 
patch 9.1.1044: Vim9: Patch 9.1.1014 causes regressions

Problem:  Vim9: Patch 9.1.1014 causes regressions
Solution: revert it for now

This reverts commit 57f0119358ed7f060d5020309b9043463121435f since this
causes some regressions:
https://github.com/vim/vim/pull/16440#issuecomment-2600235629

So revert "patch 9.1.1014: Vim9: variable not found in transitive
import" for now.

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoUpdate .gitignore for v9.1.1036
ichizok [Tue, 21 Jan 2025 20:48:58 +0000 (21:48 +0100)] 
Update .gitignore for v9.1.1036

Ignore the src/{LICENSE,README.txt} which are created from shadow
directories.

closes: #16499

Signed-off-by: ichizok <gclient.gaap@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agotranslation(sr): Update Serbian messages translation
Ivan Pešić [Tue, 21 Jan 2025 20:42:48 +0000 (21:42 +0100)] 
translation(sr): Update Serbian messages translation

closes: #16500

Signed-off-by: Ivan Pešić <27575106+eevan78@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1043: [security]: segfault in win_line() v9.1.1043
Christian Brabandt [Mon, 20 Jan 2025 21:55:57 +0000 (22:55 +0100)] 
patch 9.1.1043: [security]: segfault in win_line()

Problem:  [security]: segfault in win_line()
          (fizz-is-on-the-way)
Solution: Check that ScreenLines is not NULL

Github Advisory:
https://github.com/vim/vim/security/advisories/GHSA-j3g9-wg22-v955

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(doc): update helptags
Christian Brabandt [Mon, 20 Jan 2025 21:52:54 +0000 (22:52 +0100)] 
runtime(doc): update helptags

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1042: filetype: just files are not recognized v9.1.1042
Peter Benjamin [Mon, 20 Jan 2025 20:56:41 +0000 (21:56 +0100)] 
patch 9.1.1042: filetype: just files are not recognized

Problem:  filetype: just files are not recognized
Solution: adjust filetype detection pattern, detect just shebang line,
          include just ftplugin, indent and syntax plugin
          (Peter Benjamin)

closes: #16466

Signed-off-by: Peter Benjamin <petermbenjamin@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(vim): Update base-syntax, match ternary and falsy operators
Doug Kearns [Mon, 20 Jan 2025 20:53:01 +0000 (21:53 +0100)] 
runtime(vim): Update base-syntax, match ternary and falsy operators

fixes: #14423
fixes: #16227
closes: #16484

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1041: Vim9: out-of-bound access when echoing an enum v9.1.1041
Yegappan Lakshmanan [Mon, 20 Jan 2025 20:38:09 +0000 (21:38 +0100)] 
patch 9.1.1041: Vim9: out-of-bound access when echoing an enum

Problem:  Vim9: out-of-bound access when echoing an enum
Solution: Add NUL to growarray, check that ufunc is non-null
          before accessing it to make Coverity happy
          (Yegappan Lakshmanan)

closes: #16488

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1040: Vim9: imported type cannot be used as func return type v9.1.1040
Yegappan Lakshmanan [Mon, 20 Jan 2025 20:09:13 +0000 (21:09 +0100)] 
patch 9.1.1040: Vim9: imported type cannot be used as func return type

Problem:  Vim9: imported type cannot be used as func return type
          (Dayvid Albuquerque)
Solution: temporarily reset the is_export flag (Yegappan Lakshmanan)

fixes: #16489
closes: #16492

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(kconfig): updated ftplugin and syntax script
Christian Brabandt [Mon, 20 Jan 2025 20:01:41 +0000 (21:01 +0100)] 
runtime(kconfig): updated ftplugin and syntax script

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(doc): rename last t_BG reference to t_RB
Jon Parise [Mon, 20 Jan 2025 19:19:18 +0000 (20:19 +0100)] 
runtime(doc): rename last t_BG reference to t_RB

This was missed in 37c64c78fd87e086b5a945ad7032787c274e2dcb.

closes: #16491

Signed-off-by: Jon Parise <jon@indelible.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1039: Vim9: comments are outdated v9.1.1039
Yegappan Lakshmanan [Sun, 19 Jan 2025 21:20:34 +0000 (22:20 +0100)] 
patch 9.1.1039: Vim9: comments are outdated

Problem:  Vim9: comments are outdated
Solution: Update comments, and include an enum example in the help
          (Yegappan Lakshmanan)

closes: #16485

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1038: tests: test_channel.py fails with IPv6 v9.1.1038
Christian Brabandt [Sun, 19 Jan 2025 13:50:31 +0000 (14:50 +0100)] 
patch 9.1.1038: tests: test_channel.py fails with IPv6

Problem:  tests: test_channel.py fails with IPv6
          (eds-collabora)
Solution: Use 127.0.0.1 instead of localhost

fixes: #16398

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(vim): Update base-syntax, fix is/isnot operator matching
Doug Kearns [Sun, 19 Jan 2025 13:02:06 +0000 (14:02 +0100)] 
runtime(vim): Update base-syntax, fix is/isnot operator matching

- Match is? and isnot? operators.
- Limit other comparison operators to one match modifier rather than
  two.

closes: #16482

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1037: Vim9: confusing error when using abstract method via super v9.1.1037
Ernie Rael [Sun, 19 Jan 2025 09:03:00 +0000 (10:03 +0100)] 
patch 9.1.1037: Vim9: confusing error when using abstract method via super

Problem:  Vim9: confusing error when using abstract method via super
Solution: Display an error when an abstract method is invoked using
          super (Ernie Rael)

fixes: #15514
closes: #16478

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1036: make install fails when using shadowdir v9.1.1036
Christian Brabandt [Sun, 19 Jan 2025 09:00:40 +0000 (10:00 +0100)] 
patch 9.1.1036: make install fails when using shadowdir

Problem:  make install fails when using shadowdir
          (after v9.1.1029)
Solution: also link in README.txt and LICENSE file

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1035: Vim9: memory leak with blob2str() v9.1.1035
Yegappan Lakshmanan [Sun, 19 Jan 2025 08:37:07 +0000 (09:37 +0100)] 
patch 9.1.1035: Vim9: memory leak with blob2str()

Problem:  Vim9: memory leak with blob2str()
Solution: free converted_str (Yegappan Lakshmanan)

closes: #16481

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(tex): add texEmphStyle to texMatchGroup in syntax script
Christian Brabandt [Sat, 18 Jan 2025 17:09:38 +0000 (18:09 +0100)] 
runtime(tex): add texEmphStyle to texMatchGroup in syntax script

fixes: #16228

Co-authored-by: Github User JordL
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoCI: bump windows python to 3.12
Philip H. [Sat, 18 Jan 2025 16:38:12 +0000 (17:38 +0100)] 
CI: bump windows python to 3.12

closes: #16473

Signed-off-by: Philip H. <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(netrw): upstream snapshot of v175
Luca Saccarola [Sat, 18 Jan 2025 16:36:02 +0000 (17:36 +0100)] 
runtime(netrw): upstream snapshot of v175

Relevant commits:
- release: netrw v175
- fix: prevent netrw to load into the built-in terminal
- fix: restore correctly cpo settings
- fix(docs): mispelled original authors name
- chore: move viml files to new formatting standard

fixes: #16463
closes: #16465

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoCI: add Linux arm64 CI job
rhysd [Sat, 18 Jan 2025 16:32:11 +0000 (17:32 +0100)] 
CI: add Linux arm64 CI job

This patch adds jobs to run tests on arm64 GitHub Actions hosted runner
for tiny and huge features.

closes: #16477

Signed-off-by: rhysd <lin90162@yahoo.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1033: Vim9: compiling abstract method fails without return v9.1.1034
Ernie Rael [Sat, 18 Jan 2025 16:26:39 +0000 (17:26 +0100)] 
patch 9.1.1033: Vim9: compiling abstract method fails without return

Problem:  Vim9: compiling abstract method fails without return
          (Aliaksei Budavei)
Solution: don't require return for an abstract method
          (Ernie Rael)

fixes: #15432
related: ##15441
closes: #16469

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoCI: bump windows libsodium to 1.0.20
Philip H. [Sat, 18 Jan 2025 16:20:13 +0000 (17:20 +0100)] 
CI: bump windows libsodium to 1.0.20

closes: #16475

Signed-off-by: Philip H. <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(c): add new constexpr keyword to syntax file (C23)
Doug Kearns [Sat, 18 Jan 2025 09:52:27 +0000 (10:52 +0100)] 
runtime(c): add new constexpr keyword to syntax file (C23)

closes: #16471

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1033: tests: shaderslang was removed from test_filetype erroneously v9.1.1033
Christian Brabandt [Sat, 18 Jan 2025 09:49:08 +0000 (10:49 +0100)] 
patch 9.1.1033: tests: shaderslang was removed from test_filetype erroneously

Problem:  tests: shaderslang was removed from test_filetype erroneously
          (Christian Clason, after v9.1.1030)
Solution: restore the test

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1032: link error when FEAT_SPELL not defined v9.1.1032
Yegappan Lakshmanan [Sat, 18 Jan 2025 09:35:57 +0000 (10:35 +0100)] 
patch 9.1.1032: link error when FEAT_SPELL not defined

Problem:  link error when FEAT_SPELL not defined
          (after v9.1.1016, John Marriott)
Solution: adjust ifdefs (Yegappan Lakshmanan)

closes: #16468

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1031: Coverity complains about insecure data handling v9.1.1031
Yegappan Lakshmanan [Sat, 18 Jan 2025 09:24:25 +0000 (10:24 +0100)] 
patch 9.1.1031: Coverity complains about insecure data handling

Problem:  Coverity complains about insecure data handling
          (v9.1.1024)
Solution: use int consistently to access the blob index
          (Yegappan Lakshmanan)

related: #16468

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(sh): update syntax script
Eisuke Kawashima [Sat, 18 Jan 2025 09:11:28 +0000 (10:11 +0100)] 
runtime(sh): update syntax script

- remove duplicated keywords
- add bash coproc and COPROC_PID keywords

Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(c): Add missing syntax test files
Doug Kearns [Sat, 18 Jan 2025 09:06:59 +0000 (10:06 +0100)] 
runtime(c): Add missing syntax test files

These were missing from commit c2a967a.

closes: #16470

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1030: filetype: setting bash filetype is backwards incompatible v9.1.1030
Christian Brabandt [Sat, 18 Jan 2025 09:03:46 +0000 (10:03 +0100)] 
patch 9.1.1030: filetype: setting bash filetype is backwards incompatible

Problem:  filetype: setting bash filetype is backwards incompatible
Solution: revert patch v9.1.0965, detect bash scripts again as sh
          filetype

This reverts commit b9b762c21f2b61e0e7d8fee43d4d3dc8ecffd721.

related: #16309

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(c): Update syntax and ftplugin files
Doug Kearns [Fri, 17 Jan 2025 13:12:16 +0000 (14:12 +0100)] 
runtime(c): Update syntax and ftplugin files

- highlight more C keywords, including some from C23

Conditionally highlight C23 features:
- #embed, #elifdef and #elifndef preprocessor directives
- predefined macros
- UTF-8 character constants
- binary integer constants, _BitInt literals, and digit separators
- nullptr_t type and associated constant
- decimal real floating-point, bit precise and char types
- typeof operators

Matchit:
- update for new preprocessor directives

fixes: #13667
fixes: #13679
closes: #12984

Co-authored-by: Albin Ahlbäck <albin.ahlback@gmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1029: the installer can be improved v9.1.1029
RestorerZ [Fri, 17 Jan 2025 13:04:44 +0000 (14:04 +0100)] 
patch 9.1.1029: the installer can be improved

Problem:  the installer can be improved
Solution: update the installer with the correct README and LICENSE
          files, improve the documentation, add a Makefile for the
          installer, update the Makefiles (RestorerZ)

fixes: #16378
closes: #16378

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1028: too many strlen() calls in screen.c v9.1.1028
John Marriott [Fri, 17 Jan 2025 12:54:49 +0000 (13:54 +0100)] 
patch 9.1.1028: too many strlen() calls in screen.c

Problem:  too many strlen() calls in screen.c
Solution: refactor screen.c and remove calls to strlen(),
          verify that leadmultispace != NULL (John Marriott)

closes: #16460

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1027: no sanitize check when running linematch v9.1.1027
Jonathon [Fri, 17 Jan 2025 12:37:35 +0000 (13:37 +0100)] 
patch 9.1.1027: no sanitize check when running linematch

Problem:  no sanitize check when running linematch
Solution: add sanitize check before applying the linematch algorithm,
          similar to diff_find_change() (Jonathon)

closes: #16446

Signed-off-by: Jonathon <jonathonwhite@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1026: filetype: swc configuration files are not recognized v9.1.1026
Marces Engel [Fri, 17 Jan 2025 12:10:15 +0000 (13:10 +0100)] 
patch 9.1.1026: filetype: swc configuration files are not recognized

Problem:  filetype: swc configuration files are not recognized
Solution: detect .swcrc files as json filetype (Marces Engel)

References:
https://swc.rs/docs/configuration/swcrc

closes: #16462

Signed-off-by: Marces Engel <marces@facemurphy.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(netrw): change netrw maintainer
Luca Saccarola [Fri, 17 Jan 2025 12:03:53 +0000 (13:03 +0100)] 
runtime(netrw): change netrw maintainer

Dr. Chip retired some time ago and is no longer maintaining the netrw
plugin. However as a runtime plugin distributed by Vim, it important to
maintain the netrw plugin in the future and fix bugs as they are
reported.

So, split out the netrw plugin as an additional package, however include
some stubs to make sure the plugin is still loaded by default and the
documentation is accessible as well.

closes: #16368

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1025: wrong return type of blob2str() v9.1.1025
Yegappan Lakshmanan [Fri, 17 Jan 2025 10:48:12 +0000 (11:48 +0100)] 
patch 9.1.1025: wrong return type of blob2str()

Problem:  wrong return type of blob2str()
Solution: update return to list of string
          (Yegappan Lakshmanan)

closes: #16461

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1024: blob2str/str2blob() do not support list of strings v9.1.1024
Yegappan Lakshmanan [Thu, 16 Jan 2025 18:16:42 +0000 (19:16 +0100)] 
patch 9.1.1024: blob2str/str2blob() do not support list of strings

Problem:  blob2str/str2blob() do not support list of strings
          (after v9.1.1016)
Solution: Add support for using a list of strings (Yegappan Lakshmanan)

closes: #16459

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(doc): fix typo in usr_02.txt
Christian Brabandt [Thu, 16 Jan 2025 18:12:48 +0000 (19:12 +0100)] 
runtime(doc): fix typo in usr_02.txt

fixes: #16455

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1023: Coverity complains about dereferencing NULL pointer v9.1.1023
Christian Brabandt [Thu, 16 Jan 2025 18:06:57 +0000 (19:06 +0100)] 
patch 9.1.1023: Coverity complains about dereferencing NULL pointer

Problem:  Coverity complains about dereferencing NULL pointer
Solution: Verify curdiff is not null before dereferencing it

closes: #16437

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1022: linematch option value not completed v9.1.1022
Christian Brabandt [Thu, 16 Jan 2025 18:03:40 +0000 (19:03 +0100)] 
patch 9.1.1022: linematch option value not completed

Problem:  linematch option value not completed
          (after v9.1.1009)
Solution: Update diffoption completion values

related: #9661
closes: #16437

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1021: string might be used without a trailing NUL v9.1.1021
John Marriott [Thu, 16 Jan 2025 17:58:20 +0000 (18:58 +0100)] 
patch 9.1.1021: string might be used without a trailing NUL

Problem:  string might be used without a trailing NUL (after v9.1.0997)
Solution: Make sure that the buffer is NUL terminated

closes: #16457

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1020: no way to get current selected item in a async context v9.1.1020
glepnir [Thu, 16 Jan 2025 13:37:44 +0000 (14:37 +0100)] 
patch 9.1.1020: no way to get current selected item in a async context

Problem:  no way to get current selected item in a async context
Solution: add completed flag to show the entries of currently selected
          index item (@glepnir)

closes: #16451

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1019: filetype: fd ignore files are not recognized v9.1.1019
Wu, Zhenyu [Wed, 15 Jan 2025 17:46:37 +0000 (18:46 +0100)] 
patch 9.1.1019: filetype: fd ignore files are not recognized

Problem:  filetype: fd ignore files are not recognized
Solution: detect .fdignore files as gitignore filetype

closes: #16444

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1018: v9.1.0743 causes regression with diff mode v9.1.1018
Yukihiro Nakadaira [Wed, 15 Jan 2025 17:36:43 +0000 (18:36 +0100)] 
patch 9.1.1018: v9.1.0743 causes regression with diff mode

Problem:  v9.1.0743 causes regression with diff mode
Solution: Fix the regression with overlapping regions

closes: #16454

Signed-off-by: Yukihiro Nakadaira <yukihiro.nakadaira@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(doc): fix base64 encode/decode examples
Maxim Kim [Wed, 15 Jan 2025 17:31:05 +0000 (18:31 +0100)] 
runtime(doc): fix base64 encode/decode examples

Use str2blob()/blob2str() functions in examples given.

closes: #16449

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1017: Vim9: Patch 9.1.1013 causes a few problems v9.1.1017
Yegappan Lakshmanan [Wed, 15 Jan 2025 17:25:19 +0000 (18:25 +0100)] 
patch 9.1.1017: Vim9: Patch 9.1.1013 causes a few problems

Problem:  Vim9: Patch 9.1.1013 causes a few problems
Solution: Translate the function name only when it is a string
          (Yegappan Lakshmanan)

fixes: #16453
closes: #16450

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1016: Not possible to convert string2blob and blob2string v9.1.1016
Yegappan Lakshmanan [Tue, 14 Jan 2025 16:29:42 +0000 (17:29 +0100)] 
patch 9.1.1016: Not possible to convert string2blob and blob2string

Problem:  Not possible to convert string2blob and blob2string
Solution: add support for the blob2str() and str2blob() functions

closes: #16373

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1015: Coverity complains about dereferencing NULL value v9.1.1015
Christian Brabandt [Tue, 14 Jan 2025 16:25:02 +0000 (17:25 +0100)] 
patch 9.1.1015: Coverity complains about dereferencing NULL value

Problem:  Coverity complains about dereferencing NULL value
Solution: Check that cms2 is not null

closes: #16438

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agopatch 9.1.1014: Vim9: variable not found in transitive import v9.1.1014
Hirohito Higashi [Tue, 14 Jan 2025 16:21:42 +0000 (17:21 +0100)] 
patch 9.1.1014: Vim9: variable not found in transitive import

Problem:  Vim9: variable not found in transitive import
Solution: Allow nested import (Hirohito Higashi)

fixe: #16379
closes: #16440

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 months agoruntime(colors): Update colorschemes, include new unokai colorscheme
Maxim Kim [Tue, 14 Jan 2025 16:15:59 +0000 (17:15 +0100)] 
runtime(colors): Update colorschemes, include new unokai colorscheme

- new unokai colorscheme (similar/inspired by monokai)
- the rest: add explicit PopupSelected link to PmenuSel

closes: #16443

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>