]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
4 months agopatch 9.1.1105: Vim9: no support for protected new() method v9.1.1105
Yegappan Lakshmanan [Tue, 11 Feb 2025 21:07:05 +0000 (22:07 +0100)] 
patch 9.1.1105: Vim9: no support for protected new() method

Problem:  Vim9: no support for protected new() method
Solution: support the protected "_new()" object method
          (Yegappan Lakshmanan)

closes: #16604

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 months agopatch 9.1.1104: CI: using Ubuntu 22.04 Github runners v9.1.1104
Drew Vogel [Tue, 11 Feb 2025 20:36:33 +0000 (21:36 +0100)] 
patch 9.1.1104: CI: using Ubuntu 22.04 Github runners

Problem:  CI: uses Ubuntu 22.04 runners
Solution: Switch to Ubuntu 24.04 runners, make a few adjustments for
          different $TMPDIR (Drew Vogel)

closes: #16442

Signed-off-by: Drew Vogel <dvogel@github>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 months agoci: syntax tests spam output
Yee Cheng Chin [Tue, 11 Feb 2025 19:16:11 +0000 (20:16 +0100)] 
ci: syntax tests spam output

Currently syntax tests outputs all the Vim commands to the console,
which is annoying for a local developer but also makes the CI output
impossible to parse and just printing all the terminal output comes with
a performance penalty.

So let's just simply redirect all output to /dev/null similar to what
the script tests do.

This can be turned off locally for someone diagnosing issues but it
should not be the default behavior to output all terminal control
sequences to output in CI.

closes: #16612

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 months agopatch 9.1.1103: if_perl: still some compile errors with Perl 5.38 v9.1.1103
Drew Vogel [Tue, 11 Feb 2025 19:06:07 +0000 (20:06 +0100)] 
patch 9.1.1103: if_perl: still some compile errors with Perl 5.38

Problem:  if_perl: still some compile errors with Perl 5.38
Solution: copy declaration of PL_memory_wrap from Perl header
          (Drew Vogel)

closes: #16613

Signed-off-by: Drew Vogel <dvogel@github>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 months agopatch 9.1.1102: tests: Test_WinScrolled_Resized_eiw() uses wrong filename v9.1.1102
Christian Brabandt [Tue, 11 Feb 2025 19:03:10 +0000 (20:03 +0100)] 
patch 9.1.1102: tests: Test_WinScrolled_Resized_eiw() uses wrong filename

Problem:  tests: Test_WinScrolled_Resized_eiw() uses wrong filename
          (Luuk van Baal, after v9.1.1084)
Solution: Rename the filename to something more unique

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1101: insexpand.c hard to read v9.1.1101
glepnir [Mon, 10 Feb 2025 21:18:00 +0000 (22:18 +0100)] 
patch 9.1.1101: insexpand.c hard to read

Problem:  insexpand.c hard to read
Solution: refactor slightly to make it better readable
          (glepnir)

Problem:
- Complex while loops with nested conditions
- Redundant if branches
- Hard to understand and maintain

Solution:
- Restructure using while(true) with clear break conditions
- Using ternary to replace some if conditions
- Add descriptive comments for each step

closes: #16600

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1100: tests: Test_log_nonexistent only works on Linux v9.1.1100
Christian Brabandt [Mon, 10 Feb 2025 21:13:43 +0000 (22:13 +0100)] 
patch 9.1.1100: tests: Test_log_nonexistent only works on Linux

Problem:  tests: Test_log_nonexistent only works on Linux
          (after v9.1.1097)
Solution: Add CheckUnix condition

closes: #16476

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(vim): Update base-syntax, improve variable matching
Doug Kearns [Mon, 10 Feb 2025 21:00:27 +0000 (22:00 +0100)] 
runtime(vim): Update base-syntax, improve variable matching

- Match variables after operators, including line continuations.
- Match option variables without leading whitespace.
- Explicitly match expression subscripts.
- Match Vim9 variables in LHS of assignments and method calls.
- Match option variables (&option) with a dedicated syntax group like
  environment variables.
- Match list literals, fixes: #5830
- Match :{un}lockvar arguments.
- Match registers and environment variables in :let unpack lists.
- Match lambda expressions
- Match Vim9 scope blocks
- Match variables in :for subject
- Highlight user variables with Normal
- Improve this/super keyword matching, fixes: #15970

closes: #16476

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1099: Vim9: import with extends may crash v9.1.1099
Yegappan Lakshmanan [Mon, 10 Feb 2025 20:35:07 +0000 (21:35 +0100)] 
patch 9.1.1099: Vim9: import with extends may crash

Problem:  Vim9: import with extends may crash, v9.1.1087 wasn't the
          correct way to fix it)
Solution: When using an import class, Check for a valid class member
          variable at compile time (Yegappan Lakshmanan)

related: #16601
closes: #16603

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1098: leaking memory with completing multi lines v9.1.1098
glepnir [Mon, 10 Feb 2025 20:16:32 +0000 (21:16 +0100)] 
patch 9.1.1098: leaking memory with completing multi lines

Problem:  leaking memory with completing multi lines
          (after v9.1.1086)
Solution: free allocated memory (glepnir)

closes: #16605

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1097: --log with non-existent path causes a crash v9.1.1097
Hirohito Higashi [Mon, 10 Feb 2025 19:55:17 +0000 (20:55 +0100)] 
patch 9.1.1097: --log with non-existent path causes a crash

Problem:  --log with non-existent path causes a crash
          (Ekkosun)
Solution: split initialization phase and init the execution stack
          earlier (Hirohito Higashi)

fixes: #16606
closes: #16610

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1096: if_perl: Perl 5.38 adds new symbols causing link failure v9.1.1096
Drew Vogel [Mon, 10 Feb 2025 19:17:56 +0000 (20:17 +0100)] 
patch 9.1.1096: if_perl: Perl 5.38 adds new symbols causing link failure

Problem:  if_perl: Perl 5.38 adds new symbols causing link failure
Solution: add stub symbols (Drew Vogel)

closes: #16611

Signed-off-by: Drew Vogel <dvogel@github>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1095: tests: matchparen plugin test wrongly named v9.1.1095
Christian Brabandt [Mon, 10 Feb 2025 19:12:46 +0000 (20:12 +0100)] 
patch 9.1.1095: tests: matchparen plugin test wrongly named

Problem:  tests: matchparen plugin test wrongly named
          (zeertzjq)
Solution: rename test_matchparen to test_plugin_matchparen
          to be consistent with the other plugin tests

related: #16599

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1094: Vim9: problem finding implemented method in type hierarchy v9.1.1094
Yegappan Lakshmanan [Sun, 9 Feb 2025 18:39:52 +0000 (19:39 +0100)] 
patch 9.1.1094: Vim9: problem finding implemented method in type hierarchy

Problem:  Vim9: problem finding implemented method for abstract method
          in type hierarchy (Aliaksei Budavei)
Solution: When checking for abstract methods in an extended class, check
          whether an abstract method is implemented in one of the parent
          classes (Yegappan Lakshmanan)

fixes: #16495
closes: #16497

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(qf): Update syntax file, match second delimiter
Doug Kearns [Sun, 9 Feb 2025 17:40:05 +0000 (18:40 +0100)] 
runtime(qf): Update syntax file, match second delimiter

Match both | separators and link to the Delimiter highlight group.

fixes #16584
closes: #16590

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1093: tests: output of test ...win32_ctrl_z depends on python version v9.1.1093
Christian Brabandt [Sun, 9 Feb 2025 16:22:30 +0000 (17:22 +0100)] 
patch 9.1.1093: tests: output of test ...win32_ctrl_z depends on python version

Problem:  tests: output of test Test_terminal_eof_arg_win32_ctrl_z depends on python
          version.
Solution: Check for the expected output in both, the second last line
          and last line

It seems python 3.13 changed the output a bit and there is no longer a
trailing blank line.  So to keep compatible with python < 3.13, let's
check for the expected output in either the last line and the second
last line.

closes: #16599

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1092: tests: fix expected return code for python 3.13 on Windows v9.1.1092
Christian Brabandt [Sun, 9 Feb 2025 16:18:07 +0000 (17:18 +0100)] 
patch 9.1.1092: tests: fix expected return code for python 3.13 on Windows

Problem:  tests: fix expected return code for python 3.13 on Windows
Solution: Check for return code 1 or 123 on Windows

There is a regression with python 3.13 on Windows, that it no longer
prints the requested error code, but instead exits with return code 1,
which  breaks the test-suite.

So let's check for either exit code 1 or 123 in tests
Test_terminal_duplicate_eof_arg() and Test_terminal_eof_arg()

This will probably be fixed on the Python side, see the pull request
python/cpython#129901 but in the meantime, let's allow both error codes.

related: #16599
related: python/cpython#129900

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1091: tests: timeout might be a bit too small v9.1.1091
Christian Brabandt [Sun, 9 Feb 2025 16:16:36 +0000 (17:16 +0100)] 
patch 9.1.1091: tests: timeout might be a bit too small

Problem:  tests: timeout might be a bit too small
Solution: increase the test timeout from 30 to 45 seconds

related: #16599

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1090: tests: test_terminwscroll_topline2 unreliable v9.1.1090
Christian Brabandt [Sun, 9 Feb 2025 16:10:30 +0000 (17:10 +0100)] 
patch 9.1.1090: tests: test_terminwscroll_topline2 unreliable

Problem:  tests: test_terminwscroll_topline2 unreliable
          (Yee Cheng Chin)
Solution: instead of using term_wait() with a specific time, use
          terminal-api and to wait until the terminal is finished

call a terminal callback function when finished printing, instead of
using term_wait(), with a defined time, which caused timeouts on CI
with the macos runners

Unfortunately I couldn't figure out how to call the terminal-api on Windows,
so skip the test on Windows. cmd.com echo didn's seem to work and
neither did trying to use python, but perhaps it was just me fighting
with the terminal quoting rules :shrug:

related: #16599
related: #16552

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1089: tests: No check when tests are run under Github actions v9.1.1089
Christian Brabandt [Sun, 9 Feb 2025 16:05:21 +0000 (17:05 +0100)] 
patch 9.1.1089: tests: No check when tests are run under Github actions

Problem:  tests: No check when tests are run under Github actions
Solution: Add the CheckGithubActions check command and skip test if
          needed

related: #16599
related: actions/runner-images#11512

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1088: tests: plugin tests are named inconsistently v9.1.1088
Christian Brabandt [Sun, 9 Feb 2025 16:03:31 +0000 (17:03 +0100)] 
patch 9.1.1088: tests: plugin tests are named inconsistently

Problem:  tests: plugin tests are named inconsistently
Solution: group them under a common 'plugin' prefix

related: #16599

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1087: Vim9: import with extends may crash v9.1.1087
Hirohito Higashi [Sun, 9 Feb 2025 15:41:23 +0000 (16:41 +0100)] 
patch 9.1.1087: Vim9: import with extends may crash

Problem:  Vim9: import with extends may crash
Solution: check otv for being NULL before trying to access it
          (Hirohito Higashi)

closes: #16601

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1086: completion doesn't work with multi lines v9.1.1086
glepnir [Sat, 8 Feb 2025 18:04:51 +0000 (19:04 +0100)] 
patch 9.1.1086: completion doesn't work with multi lines

Problem:  completion doesn't work with multi lines
          (Łukasz Jan Niemier)
Solution: handle linebreaks in completion code as expected
          (glepnir)

fixes: #2505
closes: #15373

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1085: filetype: cmmt files are not recognized v9.1.1085
Christoph Sax [Sat, 8 Feb 2025 18:01:05 +0000 (19:01 +0100)] 
patch 9.1.1085: filetype: cmmt files are not recognized

Problem:  filetype: cmmt files are not recognized
Solution: detect '*.cmmt' as trace32 filetype
          (Christian Sax)

"*.cmmt" files use the same syntax as regular TRACE32 scripts,
but are intended as a kind of script template.

closes: #16598

Signed-off-by: Christoph Sax <c_sax@mailbox.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1084: Unable to persistently ignore events in a window and its buffers v9.1.1084
Luuk van Baal [Sat, 8 Feb 2025 17:52:39 +0000 (18:52 +0100)] 
patch 9.1.1084: Unable to persistently ignore events in a window and its buffers

Problem:  Unable to persistently ignore events in a window and its buffers.
Solution: Add 'eventignorewin' option to ignore events in a window and buffer
          (Luuk van Baal)

Add the window-local 'eventignorewin' option that is analogous to
'eventignore', but applies to a certain window and its buffers. Identify
events that should be allowed in 'eventignorewin', adapt "auto_event"
and "event_tab" to encode this information. Window context is not passed
onto apply_autocmds_group(), and when to ignore an event is a bit
ambiguous when "buf" is not "curbuf", rather than a large refactor, only
ignore an event when all windows into "buf" are ignoring the event.

closes: #16530

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agoruntime(tex): improve syntax highlighting
Eisuke Kawashima [Sat, 8 Feb 2025 17:32:14 +0000 (18:32 +0100)] 
runtime(tex): improve syntax highlighting

this change includes the following changes:
- a macro option must be #1–#9
- add \providecommand
- add starred versions of \newcommand, \newenvironment, and their
  variants
- add number of arguments to \(re)newenvironment

Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1083: setreg() doesn't correctly handle mbyte chars in blockwise mode v9.1.1083
Yee Cheng Chin [Sat, 8 Feb 2025 17:19:15 +0000 (18:19 +0100)] 
patch 9.1.1083: setreg() doesn't correctly handle mbyte chars in blockwise mode

Problem:  setreg() doesn't correctly handle mbyte chars in blockwise
          mode
Solution: use mb_ptr2len_len function pointer (Yee Cheng Chin)

setreg() will automatically calculate the width when a blockwise mode is
specified, but it does not properly calculate the line widths of mbyte
characters when value is passed as newline-terminated string. It does
work when value is passed as a list of lines though.

Fix this by properly using the mbyte function pointer to increment the
loop counter.

closes: #16596

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1082: unexpected DCS responses may cause out of bounds reads v9.1.1082
Julio B [Fri, 7 Feb 2025 19:44:49 +0000 (20:44 +0100)] 
patch 9.1.1082: unexpected DCS responses may cause out of bounds reads

Problem:  unexpected DCS responses may cause out of bounds reads
          (after v9.1.1054)
Solution: check that the parsed value is '=' as expected
          (Julio B)

Signed-off-by: Julio B <julio.bacel@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1081: has('bsd') is true for GNU/Hurd v9.1.1081
Zhaoming Luo [Thu, 6 Feb 2025 20:39:35 +0000 (21:39 +0100)] 
patch 9.1.1081: has('bsd') is true for GNU/Hurd

Problem:  has('bsd') is true for GNU/Hurd
Solution: exclude GNU/Hurd from BSD feature flag
          (Zhaoming Luo)

GNU/Hurd, like Mac OS X, is a BSD-based system. It should exclude
has('bsd') feature just like what Mac OS X does. The __GNU__ pre-defined
macro indicates it's compiled for GNU/Hurd.

closes: #16580

Signed-off-by: Zhaoming Luo <zhmingluo@163.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 months agopatch 9.1.1080: filetype: Mill files are not recognized v9.1.1080
Chris Kipp [Thu, 6 Feb 2025 20:26:08 +0000 (21:26 +0100)] 
patch 9.1.1080: filetype: Mill files are not recognized

Problem:  filetype: Mill files are not recognized
Solution: detect '*.mill' files as scala filetype
          (author)

In the past [Mill](https://mill-build.org/mill/index.html) build files
were always `build.sc` and treated as Scala files. However as the 0.12.x
series of mill you can create a `build.mill` file. You can see a lot of
examples of this if you search
[GitHub](https://github.com/search?q=build.mill&type=code). This small
change just ensures that if you have a `*.mill` file it treats it as a
Scala file.

closes: #16585

Signed-off-by: Chris Kipp <ckipp@pm.me>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>