]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
10 months agopatch 9.1.0989: Vim9: Whitespace after the final enum value causes a syntax error v9.1.0989
Doug Kearns [Sat, 4 Jan 2025 16:12:24 +0000 (17:12 +0100)] 
patch 9.1.0989: Vim9: Whitespace after the final enum value causes a syntax error

Problem:  Vim9: Whitespace after the final enum value causes a syntax
          error
Solution: Fix parsing to allow whitespace after the final enum value.
          (Doug Kearns)

closes: #16383

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 months agoruntime(java): Quietly opt out for unsupported markdown.vim versions
Aliaksei Budavei [Fri, 3 Jan 2025 16:38:14 +0000 (17:38 +0100)] 
runtime(java): Quietly opt out for unsupported markdown.vim versions

fixes #16349
closes: #16369

Signed-off-by: Aliaksei Budavei <32549825+zzzyxwvut@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 months agoruntime(vim): fix failing vim syntax test
h-east [Fri, 3 Jan 2025 16:32:54 +0000 (17:32 +0100)] 
runtime(vim): fix failing vim syntax test

after v9.1.0985

related: #16356

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 months agopatch 9.1.0988: Vim9: no error when using uninitialized var in new() v9.1.0988
Yegappan Lakshmanan [Fri, 3 Jan 2025 09:50:08 +0000 (10:50 +0100)] 
patch 9.1.0988: Vim9: no error when using uninitialized var in new()

Problem:  Vim9: no error when using uninitialized var in new()
          (lifepillar, Aliaksei Budavei)
Solution: Give an error if an uninitialized object variable is referenced
          in new() (Yegappan Lakshmanan)

fixes: #14411
fixes: #16344
closes: #16374

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 months agoruntime(doc): update index.txt
h-east [Fri, 3 Jan 2025 09:45:15 +0000 (10:45 +0100)] 
runtime(doc): update index.txt

related: #16357
closes: #16372

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 months agopatch 9.1.0987: filetype: cake files are not recognized v9.1.0987
Zoe Roux [Fri, 3 Jan 2025 09:40:31 +0000 (10:40 +0100)] 
patch 9.1.0987: filetype: cake files are not recognized

Problem:  filetype: cake files are not recognized
Solution: detect '*.cake' files as cs filetype
          (Zoe Roux)

References:
https://cakebuild.net/

closes: #16367

Signed-off-by: Zoe Roux <zoe.roux@zoriya.dev>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 months agopatch 9.1.0986: filetype: 'jj' filetype is a bit imprecise v9.1.0986
Gregory Anders [Fri, 3 Jan 2025 09:35:35 +0000 (10:35 +0100)] 
patch 9.1.0986: filetype: 'jj' filetype is a bit imprecise

Problem:  filetype: 'jj' filetype is a bit imprecise
Solution: rename 'jj' filetype to 'jjdescription'
          (Gregory Anders)

closes: #16364

Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 months agoruntime(jj): Support diffs in jj syntax
Gregory Anders [Fri, 3 Jan 2025 09:34:24 +0000 (10:34 +0100)] 
runtime(jj): Support diffs in jj syntax

related: #16364

Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 months agoruntime(vim): Update matchit pattern, no Vim9 short names
Doug Kearns [Fri, 3 Jan 2025 09:28:09 +0000 (10:28 +0100)] 
runtime(vim): Update matchit pattern, no Vim9 short names

Abbreviated :enum and :interface commands are no longer supported.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 months agopatch 9.1.0985: Vim9: some ex commands can be shortened v9.1.0985
h-east [Fri, 3 Jan 2025 09:19:45 +0000 (10:19 +0100)] 
patch 9.1.0985: Vim9: some ex commands can be shortened

Problem:  Vim9: some ex commands can be shortened
Solution: disallow shortening of :abstract, :interface and :type
          (h-east)

closes: #16356

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 months agopatch 9.1.0984: exception handling can be improved v9.1.0984
ichizok [Thu, 2 Jan 2025 17:06:00 +0000 (18:06 +0100)] 
patch 9.1.0984: exception handling can be improved

Problem:  exception handling can be improved
Solution: add v:stacktrace and getstacktrace()

closes: #16360

Co-authored-by: Naruhiko Nishino <naru123456789@gmail.com>
Signed-off-by: ichizok <gclient.gaap@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 months agoruntime(doc): update doc for :horizontal
h-east [Thu, 2 Jan 2025 16:34:55 +0000 (17:34 +0100)] 
runtime(doc): update doc for :horizontal

Revert the documentation for :horizontal from commit
0c3e57b403e0e3a1fefc because :horizontal cannot be shortened to :ho

closes: #16362

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 months agoruntime(doc): update index.txt, windows.txt and version9.txt
h-east [Thu, 2 Jan 2025 10:00:49 +0000 (11:00 +0100)] 
runtime(doc): update index.txt, windows.txt and version9.txt

closes: #16357

Co-authored-by: Aliaksei Budavei <32549825+zzzyxwvut@users.noreply.github.com>
Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 months agoruntime(doc): Tweak documentation about base64 function
h-east [Thu, 2 Jan 2025 09:40:29 +0000 (10:40 +0100)] 
runtime(doc): Tweak documentation about base64 function

closes: #16353

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(chordpro): update syntax script
nibo [Tue, 31 Dec 2024 10:24:46 +0000 (11:24 +0100)] 
runtime(chordpro): update syntax script

References:
https://chordpro.org/beta/directives-define/#defining-chords-for-keyboard-instruments

Signed-off-by: nibo <nibo@relim.de>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0983: not able to get the displayed items in complete_info() v9.1.0983
glepnir [Tue, 31 Dec 2024 09:55:22 +0000 (10:55 +0100)] 
patch 9.1.0983: not able to get the displayed items in complete_info()

Problem:  not able to get the displayed items in complete_info()
          (Evgeni Chasnovski)
Solution: return the visible items via the "matches" key for
          complete_info() (glepnir)

fixes: #10007
closes: #16307

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(doc): use standard SGR format at :h xterm-true-color
Andrea Pappacoda [Tue, 31 Dec 2024 09:46:22 +0000 (10:46 +0100)] 
runtime(doc): use standard SGR format at :h xterm-true-color

By default, Vim uses the non-standard, but widely supported, legacy
xterm/Konsole format for setting "direct colors" with set setaf and
setbf escape codes, which use semicolons as separators.

The documentation for xterm-true-color mentions that, as an alternative,
users can set alternative sequences that use colons instead of
semicolons. This format, though, isn't standard and it is unclear how
widely supported it is; it was added by xterm patch 282 due to a
misinterpretation of the ISO 8613-6 (ITU T.416) standard, and was later
changed to the format suggested by this patch, which is the one
specified in the standard.

Today, looking at ncurses' [terminfo], it seems that all terminal
emulators use either the standard format (named "xterm+direct" in the
terminfo source) or the legacy format (named "xterm+indirect" in the
terminfo source).

Hence, I believe it makes sense to align the docs with reality.

If you're interested in the story of this escape sequence, I'd recommend
reading
<https://invisible-island.net/ncurses/ncurses.faq.html#xterm_16MegaColors>.

[terminfo]: https://invisible-island.net/ncurses/terminfo.ti.html

closes: #16350

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Andrea Pappacoda <andrea@pappacoda.it>
11 months agopatch 9.1.0982: TI linker files are not recognized v9.1.0982
Wu, Zhenyu [Tue, 31 Dec 2024 09:25:44 +0000 (10:25 +0100)] 
patch 9.1.0982: TI linker files are not recognized

Problem:  TI linker files are not recognized
Solution: inspect '*.cmd' files and detect TI linker files
          as 'lnk' filetype, include a lnk ftplugin and syntax
          script (Wu, Zhenyu)

closes: #16320

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(vim): update vim generator syntax script
h-east [Mon, 30 Dec 2024 14:40:24 +0000 (15:40 +0100)] 
runtime(vim): update vim generator syntax script

* include the base64* functions
* allow to shorten finally

closes: #16346

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0981: tests: typo in test_filetype.vim v9.1.0981
Wu, Zhenyu [Mon, 30 Dec 2024 14:36:37 +0000 (15:36 +0100)] 
patch 9.1.0981: tests: typo in test_filetype.vim

Problem:  tests: typo in test_filetype.vim
Solution: fix comment, update lnkmap syntax file and add
          DESCT keyword
          (Wu, Zhenyu)

closes: #16348

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0980: no support for base64 en-/decoding functions in Vim Script v9.1.0980
Yegappan Lakshmanan [Mon, 30 Dec 2024 09:29:44 +0000 (10:29 +0100)] 
patch 9.1.0980: no support for base64 en-/decoding functions in Vim Script

Problem:  no support for base64 en-/decoding functions in Vim Script
          (networkhermit)
Solution: Add the base64_encode() and base64_decode() functions
          (Yegappan Lakshmanan)

fixes: #16291
closes: #16330

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agosyntax(sh): Improve the recognition of bracket expressions
Aliaksei Budavei [Mon, 30 Dec 2024 09:23:50 +0000 (10:23 +0100)] 
syntax(sh): Improve the recognition of bracket expressions

- Define a general non-"contained" "shBracketExpr" group,
  and replace with it the "contained" bracket variant of
  "shOperator", adjusting the patterns for the competing
  conditional commands "[" and "[[".
- Accommodate some unbalanced brackets (e.g. "[!][!]").
- Make the leading "!" (or "^") stand out in NON-matching
  bracket expressions.
- Support literal newlines in parametric patterns (along
  with pathname globbings and "case" patterns).
- Also match bracket expressions in:
  * parametric patterns (e.g. "${1#[ab]_}");
  * pathname globbings (e.g. "[ab]*.txt");
  * arguments for the "[[", "echo", and "print" commands.
- Recognise collating symbols (e.g. "[.a.]") and equivalence
  classes (e.g. "[=a=]").
- Recognise end patterns for a pattern substitution form of
  parameter expansion and match bracket expressions in such
  patterns (e.g. "${1/%[.!]/;}").

fixes #15799
closes: #15941

References:
https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap09.html#tag_09_03_05
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html#tag_19_14
https://git.savannah.gnu.org/gitweb/?p=bash.git;a=blob_plain;f=doc/bash.html;hb=37b7e91d64ad10b1a1815d12128c9475636df670
http://www.mirbsd.org/htman/i386/man1/mksh.htm

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(doc): mention how NUL bytes are handled
Christian Brabandt [Mon, 30 Dec 2024 09:20:17 +0000 (10:20 +0100)] 
runtime(doc): mention how NUL bytes are handled

fixes: #16326

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0979: VMS: type warning with $XDG_VIMRC_FILE v9.1.0979
Christian Brabandt [Mon, 30 Dec 2024 09:10:01 +0000 (10:10 +0100)] 
patch 9.1.0979: VMS: type warning with $XDG_VIMRC_FILE

Problem:  VMS: type warning with $XDG_VIMRC_FILE
          (Zoltan Arpadffy)
Solution: add explicit (char_u *) type cast to mch_getenv() call

fixes: #16335

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0978: GUI tests sometimes fail when setting 'scroll' options v9.1.0978
Christian Brabandt [Mon, 30 Dec 2024 09:05:49 +0000 (10:05 +0100)] 
patch 9.1.0978: GUI tests sometimes fail when setting 'scroll' options

Problem:  GUI tests sometimes fail when setting 'scroll' options
Solution: decrease the 'scroll' and 'scrolljump' option value from 20 to
          15, in case the Gui window is not large enough to handle 20.

tests: decrease the scroll and scrolljump values

the gui tests sometimes fail with:

```
From test_options_all.vim:
Found errors in Test_opt_set_scroll():
Caught exception in Test_opt_set_scroll(): Vim(set):E49: Invalid scroll size: scroll=20 @ command line..script /home/runner/work/vim/vim/src/testdir/runtest.vim[617]..function RunTheTest[57]..Test_opt_set_scroll, line 7
Found errors in Test_opt_set_scrolljump():
Caught exception in Test_opt_set_scrolljump(): Vim(set):E49: Invalid scroll size: scrolljump=20 @ command line..script /home/runner/work/vim/vim/src/testdir/runtest.vim[617]..function RunTheTest[57]..Test_opt_set_scrolljump, line 9
```

closes: #16337

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0977: filetype: msbuild filetypes are not recognized v9.1.0977
GustavEikaas [Mon, 30 Dec 2024 09:01:36 +0000 (10:01 +0100)] 
patch 9.1.0977: filetype: msbuild filetypes are not recognized

Problem:  filetype: msbuild filetypes are not recognized
Solution: detect msbuild files as xml filetype
          (Gustav Eikaas)

closes: #16339

Signed-off-by: GustavEikaas <gustav.eikaas@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0976: Vim9: missing return statement with throw v9.1.0976
Yegappan Lakshmanan [Mon, 30 Dec 2024 08:56:34 +0000 (09:56 +0100)] 
patch 9.1.0976: Vim9: missing return statement with throw

Problem:  Vim9: missing return statement with throw
          (atitcreate)
Solution: Treat a throw statement at the end of an if-else block as a
          return statement (Yegappan Lakshmanan)

fixes: #16312
closes: #16338

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0975: Vim9: interpolated string expr not working in object methods v9.1.0975
Yegappan Lakshmanan [Mon, 30 Dec 2024 08:52:16 +0000 (09:52 +0100)] 
patch 9.1.0975: Vim9: interpolated string expr not working in object methods

Problem:  Vim9: interpolated string expr not working in object methods
          (Igbanam Ogbuluijah)
Solution: Check the evalarg argument (Yegappan Lakshmanan)

fixes: #16317
closes: #16342

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0974: typo in change of commit v9.1.0873 v9.1.0974
John Marriott [Mon, 30 Dec 2024 08:48:06 +0000 (09:48 +0100)] 
patch 9.1.0974: typo in change of commit v9.1.0873

Problem:  typo in change of commit v9.1.0873
          (Christ van Willegen)
Solution: Add back the square brackets
          (John Marriott)

closes: #16340

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0973: too many strlen() calls in fileio.c v9.1.0973
John Marriott [Sun, 29 Dec 2024 15:14:19 +0000 (16:14 +0100)] 
patch 9.1.0973: too many strlen() calls in fileio.c

Problem:  too many strlen() calls in fileio.c
Solution: refactor fileio.c and remove calls to STRLEN(),
          check for out-of-memory condition in buf_check_timestamp()
          (John Marriott)

closes: #16306

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(sh): set shellcheck as the compiler for supported shells
Luca Saccarola [Sun, 29 Dec 2024 14:36:42 +0000 (15:36 +0100)] 
runtime(sh): set shellcheck as the compiler for supported shells

closes: #16311

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(doc): Fix enum example syntax
Doug Kearns [Sun, 29 Dec 2024 14:33:12 +0000 (15:33 +0100)] 
runtime(doc): Fix enum example syntax

An ex-colon is not allowed before endenum.  As no other examples in the
file use an ex-colon remove them both.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0972: filetype: TI linker map files are not recognized v9.1.0972
Wu, Zhenyu [Sun, 29 Dec 2024 14:28:46 +0000 (15:28 +0100)] 
patch 9.1.0972: filetype: TI linker map files are not recognized

Problem:  filetype: TI linker map files are not recognized
Solution: detect TI linker map files as lnkmap filetype
          (Wu, Zhenyu)

References:
https://downloads.ti.com/docs/esd/SPRUI03A/Content/SPRUI03A_HTML/linker_description.html

closes: #16324

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(vim): Improve syntax script generator for Vim Script
h-east [Sun, 29 Dec 2024 14:14:37 +0000 (15:14 +0100)] 
runtime(vim): Improve syntax script generator for Vim Script

closes: #16331

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0971: filetype: SLNX files are not recognized v9.1.0971
GustavEikaas [Sun, 29 Dec 2024 14:08:49 +0000 (15:08 +0100)] 
patch 9.1.0971: filetype: SLNX files are not recognized

Problem:  filetype: SLNX files are not recognized
Solution: detect '*.slnx' files as xml filetype
          (Gustav Eikaas)

References:
https://blog.ndepend.com/slnx-the-new-net-solution-xml-file-format/
https://blog.jetbrains.com/dotnet/2024/10/04/support-for-slnx-solution-files/

closes: #16334

Signed-off-by: GustavEikaas <gustav.eikaas@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0970: VMS: build errors on VMS architecture v9.1.0970
Zoltan Arpadffy [Sun, 29 Dec 2024 08:50:20 +0000 (09:50 +0100)] 
patch 9.1.0970: VMS: build errors on VMS architecture

Problem:  VMS: build errors on VMS architecture
Solution: define cellsize struct, use C89 to initialize lval_root_S
          struct (Zoltan Arpadffy)

* define struct cellsize for VMS
* ensures the code adheres to the C89 standard

closes: #16328

Signed-off-by: Zoltan Arpadffy <zoltan.arpadffy@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(doc): Fix documentation typos
h-east [Sun, 29 Dec 2024 08:46:03 +0000 (09:46 +0100)] 
runtime(doc): Fix documentation typos

closes: #16333

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(doc): update for new keyprotocol option value (after v9.1.0969)
Christian Brabandt [Sat, 28 Dec 2024 16:15:05 +0000 (17:15 +0100)] 
runtime(doc): update for new keyprotocol option value (after v9.1.0969)

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0969: ghostty not using kitty protocol by default v9.1.0969
Christian Brabandt [Sat, 28 Dec 2024 15:27:49 +0000 (16:27 +0100)] 
patch 9.1.0969: ghostty not using kitty protocol by default

Problem:  ghostty not using kitty protocol by default (00-kat)
Solution: update keyprotocol option default and include ghostty

fixes: #16318
closes: #16323

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0968: tests: GetFileNameChecks() isn't fully sorted by filetype name v9.1.0968
zeertzjq [Sat, 28 Dec 2024 15:24:30 +0000 (16:24 +0100)] 
patch 9.1.0968: tests: GetFileNameChecks() isn't fully sorted by filetype name

Problem:  tests: GetFileNameChecks() isn't fully sorted by filetype name
Solution: re-sort the list

closes: #16322

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(doc): update version9.txt for bash filetype
Christian Brabandt [Sat, 28 Dec 2024 15:20:53 +0000 (16:20 +0100)] 
runtime(doc): update version9.txt for bash filetype

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(netrw): update last change header for #16265
Christian Brabandt [Sat, 28 Dec 2024 13:08:38 +0000 (14:08 +0100)] 
runtime(netrw): update last change header for #16265

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(doc): fix doc error in :r behaviour
Martino Ischia [Sat, 28 Dec 2024 09:19:26 +0000 (10:19 +0100)] 
runtime(doc): fix doc error in :r behaviour

closes: #16316

Signed-off-by: Martino Ischia <ischiamartino@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0967: SpotBugs compiler setup can be further improved v9.1.0967
Aliaksei Budavei [Fri, 27 Dec 2024 15:46:36 +0000 (16:46 +0100)] 
patch 9.1.0967: SpotBugs compiler setup can be further improved

Problem:  SpotBugs compiler can be further improved
Solution: Introduce event-driven primitives for SpotBugs
          (Aliaksei Budavei)

closes: #16258

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0966: Vim9: :enum command can be shortened v9.1.0966
h-east [Fri, 27 Dec 2024 15:25:32 +0000 (16:25 +0100)] 
patch 9.1.0966: Vim9: :enum command can be shortened

Problem:  Vim9: :enum command can be shortened
Solution: prevent shortening of :enum command by adding the EX_WHOLE
          flag to command definition (h-east)

closes: #16305

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(compiler): include a basic bash syntax checker compiler
Konfekt [Fri, 27 Dec 2024 15:22:44 +0000 (16:22 +0100)] 
runtime(compiler): include a basic bash syntax checker compiler

See @saccarosium 's suggestion at
https://github.com/vim/vim/pull/16311#issuecomment-2563447885

closes: #16314

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0965: filetype: sh filetype set when detecting the use of bash v9.1.0965
Luca Saccarola [Fri, 27 Dec 2024 15:08:14 +0000 (16:08 +0100)] 
patch 9.1.0965: filetype: sh filetype set when detecting the use of bash

Problem:  filetype: sh filetype set when detecting the use of bash
Solution: when bash is detected, use 'bash' filetype instead
          (Luca Saccarola)

closes: #16309

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(doc): clarify ARCH value for 32-bit in INSTALLpc.txt
Christian Brabandt [Fri, 27 Dec 2024 14:51:09 +0000 (15:51 +0100)] 
runtime(doc): clarify ARCH value for 32-bit in INSTALLpc.txt

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0964: MS-Windows: sed error with MinGW v9.1.0964
Andrey A. Voropaev [Thu, 26 Dec 2024 14:55:24 +0000 (15:55 +0100)] 
patch 9.1.0964: MS-Windows: sed error with MinGW

Problem:  MS-Windows: sed error with MinGW
Solution: use double quotes for sed, update compilation notes
          (Andrey A Voropaev)

closes: #16304

Signed-off-by: Andrey A. Voropaev <voropaev.andrey@swm.de>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0963: fuzzy-matching does not prefer full match v9.1.0963
glepnir [Thu, 26 Dec 2024 14:38:39 +0000 (15:38 +0100)] 
patch 9.1.0963: fuzzy-matching does not prefer full match

Problem:  fuzzy-matching does not prefer full match
          (Maxim Kim)
Solution: add additional score for a full match
          (glepnir)

fixes: #15654
closes: #16300

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0962: filetype: bun.lock file is not recognized v9.1.0962
Anton Kastritskii [Thu, 26 Dec 2024 14:16:12 +0000 (15:16 +0100)] 
patch 9.1.0962: filetype: bun.lock file is not recognized

Problem:  filetype: bun.lock file is not recognized
Solution: detect 'bun.lock' file as jsonc filetype
          (Anton Kastritskii)

closes: #16308

Signed-off-by: Anton Kastritskii <halloy52@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(vim): update indentation plugin for Vim script
Jim Zhou [Thu, 26 Dec 2024 09:30:37 +0000 (10:30 +0100)] 
runtime(vim): update indentation plugin for Vim script

Make the indent script aware of enums and ensure those will be correctly
indented.

fixes: #16289
closes: #16293

Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Jim Zhou <csd_189@163.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(doc): tweak documentation style in helphelp.txt
h-east [Thu, 26 Dec 2024 09:22:46 +0000 (10:22 +0100)] 
runtime(doc): tweak documentation style in helphelp.txt

closes: #16302

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(vim): Update base-syntax, allow parens in default arguments
Doug Kearns [Thu, 26 Dec 2024 09:13:45 +0000 (10:13 +0100)] 
runtime(vim): Update base-syntax, allow parens in default arguments

Allow parentheses in default arguments specified in :def and :function
definitions.

fixes #16243
closes: #16269

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(doc): mention auto-format using clang-format for sound.c/sign.c 16281/head
Christian Brabandt [Wed, 25 Dec 2024 17:00:38 +0000 (18:00 +0100)] 
runtime(doc): mention auto-format using clang-format for sound.c/sign.c

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(help): fix typo s/additional/arbitrary/
Christian Brabandt [Wed, 25 Dec 2024 16:52:12 +0000 (17:52 +0100)] 
runtime(help): fix typo s/additional/arbitrary/

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(help): Add better support for language annotation highlighting
Shougo Matsushita [Wed, 25 Dec 2024 09:55:48 +0000 (10:55 +0100)] 
runtime(help): Add better support for language annotation highlighting

closes: #16238

Co-authored-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: h_east <h.east.727@gmail.com>
Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0961: filetype: TI gel files are not recognized v9.1.0961
Wu, Zhenyu [Wed, 25 Dec 2024 09:37:57 +0000 (10:37 +0100)] 
patch 9.1.0961: filetype: TI gel files are not recognized

Problem:  filetype: TI gel files are not recognized
Solution: detect '*.gel' files as gel filetype, include
          get filetype and syntax plugins
          (Wu, Zhenyu)

References:
https://downloads.ti.com/ccs/esd/documents/users_guide/ccs_debug-gel.html

closes: #16226

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0960: filetype: hy history files are not recognized v9.1.0960
Wu, Zhenyu [Wed, 25 Dec 2024 09:33:57 +0000 (10:33 +0100)] 
patch 9.1.0960: filetype: hy history files are not recognized

Problem:  filetype: hy history files are not recognized
Solution: detect '*.hy', '.hy-history' files as hy filetype,
          detect '.lips_repl_history' files are scheme filetype
          (Wu, Zhenyu)

closes: #16298

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agotranslation(fi): Fix typoes in Finish menu translation
Fredrik [Wed, 25 Dec 2024 09:28:29 +0000 (10:28 +0100)] 
translation(fi): Fix typoes in Finish menu translation

fixes: #16285
closes: #16286

Signed-off-by: Fredrik <fredrik.oljemark@helsinki.fi>
Signed-off-by: Flammie A Pirinen <flammie@iki.fi>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0959: Coverity complains about type conversion v9.1.0959
Yegappan Lakshmanan [Wed, 25 Dec 2024 09:20:51 +0000 (10:20 +0100)] 
patch 9.1.0959: Coverity complains about type conversion

Problem:  Coverity complains about type conversion
          (after v9.1.0957)
Solution: use size_t instead of int for file length
          (Yegappan Lakshmanan)

closes: #16297

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(vim): Use supported syntax in indent tests
Aliaksei Budavei [Wed, 25 Dec 2024 09:18:15 +0000 (10:18 +0100)] 
runtime(vim): Use supported syntax in indent tests

For now, prefer mis-indentation of enum values (see #16289)
rather than invalid syntax.

Related to #13670 and #14224.

closes: #16292

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0958: filetype: supertux2 config files detected as lisp v9.1.0958
Wu, Zhenyu [Tue, 24 Dec 2024 08:54:27 +0000 (09:54 +0100)] 
patch 9.1.0958: filetype: supertux2 config files detected as lisp

Problem:  filetype: supertux2 config files detected as lisp
Solution: detect supertux2 config files as scheme instead
          (Wu, Zhenyu)

References:
https://github.com/SuperTux/supertux/wiki/S-Expression

supertux uses #t and #f as bool type, which is same as scheme, not
common lisp

closes: #16287

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0957: MS-Windows: conversion warnings v9.1.0957
Yegappan Lakshmanan [Tue, 24 Dec 2024 08:50:01 +0000 (09:50 +0100)] 
patch 9.1.0957: MS-Windows: conversion warnings

Problem:  MS-Windows: conversion warnings
Solution: add explicit type casts (Yegappan Lakshmanan)

closes: #16288

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0956: completion may crash, completion highlight wrong with preview window v9.1.0956
glepnir [Tue, 24 Dec 2024 08:44:35 +0000 (09:44 +0100)] 
patch 9.1.0956: completion may crash, completion highlight wrong with preview window

Problem:  completion may crash, completion highlight wrong with preview
          window (after v9.1.0954)
Solution: correctly calculate scroll offset, check for preview window
          when adding extra highlighting
          (glepnir)

when there have a preview window prepare_tagpreview
will change curwin to preview window and this may cause
ComplMatchIns check condition not correct. check wp is curwin
and also the type of wp is not a preview or poup info

fixes: #16284
closes: #16283

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0955: Vim9: vim9compile.c can be further improved v9.1.0955
Yegappan Lakshmanan [Mon, 23 Dec 2024 09:15:08 +0000 (10:15 +0100)] 
patch 9.1.0955: Vim9: vim9compile.c can be further improved

Problem:  Vim9: vim9compile.c can be further improved
Solution: refactor the compile_def_function
          (Yegappan Lakshmanan)

closes: #16280

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(doc): move help tag E1182
h-east [Mon, 23 Dec 2024 09:11:25 +0000 (10:11 +0100)] 
runtime(doc): move help tag E1182

closes: #16279

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(graphql): contribute vim-graphql to Vim core
Jon Parise [Mon, 23 Dec 2024 08:57:42 +0000 (09:57 +0100)] 
runtime(graphql): contribute vim-graphql to Vim core

Contribute the core of my vim-graphql project (ftplugin, indent, syntax)
to the Vim project. This replaces the basic ftplugin support that was
already in the runtime with a more complete set of filetype settings. I
can assume maintainership for all of these files.

I'll continue to maintain the higher-level embedded filetype support
separately (in vim-graphql) for now, because it's fairly complex, but we
can consider integrating that code directly into vim later.

runtime files use the MIT license.

closes: #16273

Signed-off-by: Jon Parise <jon@indelible.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0954: popupmenu.c can be improved v9.1.0954
glepnir [Sun, 22 Dec 2024 14:16:40 +0000 (15:16 +0100)] 
patch 9.1.0954: popupmenu.c can be improved

Problem:  popupmenu.c can be improved
Solution: slightly refactor the logic
          (glepnir)

closes: #16271

Replace some if blocks and combine user attr abstract to an inline
function.

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0953: filetype: APKBUILD files not correctly detected v9.1.0953
Hugo Osvaldo Barrera' via vim_dev [Wed, 18 Dec 2024 16:52:48 +0000 (17:52 +0100)] 
patch 9.1.0953: filetype: APKBUILD files not correctly detected

Problem:  filetype: APKBUILD files not correctly detected
Solution: detect 'APKBUILD' files as apkbuild filetype,
          include a apkbuild syntax script (which basically
          just sources the sh.vim syntax file)
          (Hugo Osvaldo Barrera)

Vim plugins (e.g.: ALE, nvim-lspconfig, etc) rely on filetype to
determine which integrations/helpers are applicable. They expect
filetype=apkbuild for APKBUILD files.

On the other hand, plugins also enable bash-specific linters and
functionality when filetype=bash, but APKBUILD files are POSIX sh, not
bash, so these often provide bogus results.

Change the filetype for APKBUILD to a 'apkbuild', so that tools and
ftplugin can properly target these files. This filetype will use the
existing `sh` syntax rules, since these are applicable for them.

Signed-off-by: Hugo Osvaldo Barrera' via vim_dev <vim_dev@googlegroups.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0952: Vim9: missing type checking for any type assignment v9.1.0952
Yegappan Lakshmanan [Sun, 22 Dec 2024 13:44:35 +0000 (14:44 +0100)] 
patch 9.1.0952: Vim9: missing type checking for any type assignment

Problem:  Vim9: missing type checking for any type assignment
          (Ernie Rael)
Solution: when assigning to a list item, if the type of the LHS item is
          any, then use the list item type (Yegappan Lakshmanan)

fixes: #15208
closes: #16274

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0951: filetype: jshell files are not recognized v9.1.0951
Konfekt [Sun, 22 Dec 2024 09:57:33 +0000 (10:57 +0100)] 
patch 9.1.0951: filetype: jshell files are not recognized

Problem:  filetype: jshell files are not recognized
Solution: detect '*.jsh' files as java filetype
          (Konfekt)

closes: #16260

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(dockerfile): do not set commentstring in syntax script
Christian Brabandt [Fri, 20 Dec 2024 18:53:55 +0000 (19:53 +0100)] 
runtime(dockerfile): do not set commentstring in syntax script

fixes: #16268

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0950: filetype: fennelrc files are not recognized v9.1.0950
Wu, Zhenyu [Fri, 20 Dec 2024 18:45:06 +0000 (19:45 +0100)] 
patch 9.1.0950: filetype: fennelrc files are not recognized

Problem:  filetype: fennelrc files are not recognized
Solution: detect 'fennelrc' files as fennel filetype
          (Wu Zhenyu)

References:
https://github.com/bakpakin/Fennel/issues/193

closes: #16262

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(netrw): do not double escape Vim special characters
Konfekt [Fri, 20 Dec 2024 18:41:02 +0000 (19:41 +0100)] 
runtime(netrw): do not double escape Vim special characters

This double escaping was likely introduced because it was the only way
to make :Open work with hashes/percent signs despite shellescape(..., 1)
supposedly taking care of it, but then breaks the gx mapping
on MSYS2 as reported at [0]

Since special characters in the URL following :Open can be escaped,
whereas gx simply breaks and is more common, no longer double escape

[0]: https://github.com/vim/vim/issues/16252

fixes: #16252
closes: #16265

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agogit: ignore reformatting change of netrw plugin
Christian Brabandt [Fri, 20 Dec 2024 18:37:54 +0000 (19:37 +0100)] 
git: ignore reformatting change of netrw plugin

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(netrw): more reformating #16248
shane.xb.qian [Fri, 20 Dec 2024 18:36:40 +0000 (19:36 +0100)] 
runtime(netrw): more reformating #16248

closes: #16266

Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(doc): Add a note about handling symbolic links in starting.txt
h-east [Thu, 19 Dec 2024 19:51:36 +0000 (20:51 +0100)] 
runtime(doc): Add a note about handling symbolic links in starting.txt

closes: #16257

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0949: popups inconsistently shifted to the left v9.1.0949
Boris Staletic [Thu, 19 Dec 2024 19:22:19 +0000 (20:22 +0100)] 
patch 9.1.0949: popups inconsistently shifted to the left

Problem:  popups inconsistently shifted to the left
Solution: always shift non-fixed popups to the left when the
          text would be truncated
          (no matter whether 'wrap' is set or not)
          (Boris Staletic)

fixes: #16231
closes: #16247

Signed-off-by: Boris Staletic <boris.staletic@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agogit: ignore reformatting change of netrw plugin
Christian Brabandt [Thu, 19 Dec 2024 19:17:17 +0000 (20:17 +0100)] 
git: ignore reformatting change of netrw plugin

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(netrw): change indent size from 1 to 2
Luca Saccarola [Thu, 19 Dec 2024 19:16:18 +0000 (20:16 +0100)] 
runtime(netrw): change indent size from 1 to 2

closes: #16248

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0948: Missing cmdline completion for :pbuffer v9.1.0948
zeertzjq [Thu, 19 Dec 2024 19:05:28 +0000 (20:05 +0100)] 
patch 9.1.0948: Missing cmdline completion for :pbuffer

Problem:  Missing cmdline completion for :pbuffer.
Solution: Add cmdline completion for :pbuffer like :buffer.
          (zeertzjq)

fixes: #16250
closes: #16251

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(tutor): Reformat tutor1
Ken Takata [Thu, 19 Dec 2024 19:03:10 +0000 (20:03 +0100)] 
runtime(tutor): Reformat tutor1

* Fix lesson number.
* Fold a long line.
* Adjust newlines.

  It seems that each lesson is written in 23 lines to fit the 80x25
  monitor.

closes: #16253

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0947: short-description v9.1.0947
Yegappan Lakshmanan [Thu, 19 Dec 2024 19:00:31 +0000 (20:00 +0100)] 
patch 9.1.0947: short-description

Problem:  Coverity comlains about un-initialized var
          (after v9.1.0943)
Solution: initialize variable (Yegappan Lakshmanan)

closes: #16256

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0946: cross-compiling fails on osx-arm64 v9.1.0946
Brandon Maier [Wed, 18 Dec 2024 20:18:01 +0000 (21:18 +0100)] 
patch 9.1.0946: cross-compiling fails on osx-arm64

Problem:  cross-compiling fails on osx-arm64
Solution: use vim_cv_timer_create_with_lrt() instead of
          vim_cv_timer_create_works() (Brandon Maier)

Cross-compiling to osx-arm64 fails with the following

  In file included from json.c:17:
  In file included from ./vim.h:457:
  ./macros.h:304:24: error: expected identifier or '('
    304 |      static inline int isnan(double x)
        |                        ^
  .../MacOSX11.0.sdk/usr/include/math.h:165:7: note: expanded from macro 'isnan'
    165 |     ( sizeof(x) == sizeof(float)  ? __inline_isnanf((float)(x))
        |       ^

This can be traced back to ./configure incorrectly detecting the
compiler support for `isnan()`, from the config.log:

  configure:14567: checking for isnan()
  configure:14588: arm64-apple-darwin20.0.0-clang <...> -L$PREFIX/lib conftest.c  -lncurses -ltinfo -lrt >&5
  ld: library not found for -lrt
  arm64-apple-darwin20.0: error: linker command failed with exit code 1 (use -v to see invocation)

The `-lrt` linking is added by ./configure script when it detects
compiler support for `timer_create()`. On the osx-arm64 platform
`timer_create()` works but does not link with `-lrt`. This results in
the following settings from config.log:

  vim_cv_timer_create=yes
  vim_cv_timer_create_with_lrt=no
  vim_cv_timer_create_works=yes

But the configure.ac incorrectly uses `timer_create_works` to add
`-lrt`, instead of using `timer_create_with_lrt`.

fixes: https://github.com/conda-forge/vim-feedstock/pull/1664
closes: #16242

Signed-off-by: Brandon Maier <brandon.maier@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0945: ComplMatchIns highlight doesn't end after inserted text v9.1.0945
zeertzjq [Wed, 18 Dec 2024 20:12:25 +0000 (21:12 +0100)] 
patch 9.1.0945: ComplMatchIns highlight doesn't end after inserted text

Problem:  ComplMatchIns highlight doesn't end after inserted text.
Solution: Handle ComplMatchIns highlight more like search highlight.
          Fix off-by-one error. Handle deleting text properly.
          (zeertzjq)

closes: #16244

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agotranslation(sv): re-include the change from #16240
Fredrik [Wed, 18 Dec 2024 20:09:27 +0000 (21:09 +0100)] 
translation(sv): re-include the change from #16240

related: #16240

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0944: tests: test_registers fails when not run under X11 v9.1.0944
Christian Brabandt [Wed, 18 Dec 2024 19:38:55 +0000 (20:38 +0100)] 
patch 9.1.0944: tests: test_registers fails when not run under X11

Problem:  tests: test_registers fails when not run under X11
Solution: filter out warning message

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0943: Vim9: vim9compile.c can be further improved v9.1.0943
Yegappan Lakshmanan [Wed, 18 Dec 2024 19:16:20 +0000 (20:16 +0100)] 
patch 9.1.0943: Vim9: vim9compile.c can be further improved

Problem:  vim9compile.c can be further improved
Solution: Refactor the compile_lhs function
          (Yegappan Lakshmanan)

closes: #16245

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(doc): Update README and mention make check to verify
Christian Brabandt [Wed, 18 Dec 2024 19:13:46 +0000 (20:13 +0100)] 
runtime(doc): Update README and mention make check to verify

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agotranslation(sv): partly revert commit 98874dca6d0b60ccd6fc3a140b3ec
Christian Brabandt [Wed, 18 Dec 2024 19:01:29 +0000 (20:01 +0100)] 
translation(sv): partly revert commit 98874dca6d0b60ccd6fc3a140b3ec

This partly reverts commit 98874dca6d0b60ccd6fc3a140b3ec1cc3e560f95,
but keeps the added changes from #16240, since the re-generated sv.po
file fails the Vim check.vim script in the CI test suite.

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(vim): update base-syntax after v9.1.0936
Christian Brabandt [Tue, 17 Dec 2024 19:59:35 +0000 (20:59 +0100)] 
runtime(vim): update base-syntax after v9.1.0936

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0942: a few typos were found v9.1.0942
zeertzjq [Tue, 17 Dec 2024 19:55:13 +0000 (20:55 +0100)] 
patch 9.1.0942: a few typos were found

Problem:  a few typos were found
Solution: fix them (zeertzjq)

closes: #16232

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0941: ComplMatchIns doesn't work after multibyte chars v9.1.0941
zeertzjq [Tue, 17 Dec 2024 19:50:19 +0000 (20:50 +0100)] 
patch 9.1.0941: ComplMatchIns doesn't work after multibyte chars

Problem:  ComplMatchIns doesn't work after multibyte chars
          (after v9.1.0936)
Solution: Use (ptr - line) instead of wlv.col (zeertzjq).

closes: #16233

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoruntime(doc): Fix style in fold.txt
h-east [Tue, 17 Dec 2024 19:48:42 +0000 (20:48 +0100)] 
runtime(doc): Fix style in fold.txt

closes: #16236

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agoci: Update macOS from macos-14 to macos-15
Yee Cheng Chin [Tue, 17 Dec 2024 19:36:10 +0000 (20:36 +0100)] 
ci: Update macOS from macos-14 to macos-15

Make sure to use the latest Xcode (16.2) which contains fixes in the
compiler, as GitHub Actions defaults to using 16.0 still. See #15764.

closes: #16239

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agotranslation(sv): Fix typo in Swedish translation
Fredrik [Tue, 17 Dec 2024 19:31:37 +0000 (20:31 +0100)] 
translation(sv): Fix typo in Swedish translation

- "kind file" not as opposed to unkind, but two separate columns

- also regenerate sv.po

fixes: #16237
closes: #16240

Signed-off-by: Fredrik <fredrik.oljemark@helsinki.fi>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0940: Wrong cursor shape with "gq" and 'indentexpr' executes :normal v9.1.0940
zeertzjq [Tue, 17 Dec 2024 19:26:45 +0000 (20:26 +0100)] 
patch 9.1.0940: Wrong cursor shape with "gq" and 'indentexpr' executes :normal

Problem:  Wrong cursor shape with "gq" and 'indentexpr' executes :normal
Solution: Update cursor and mouse shape after restoring old_State.
          (zeertzjq)

closes: #16241

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Solution: Update cursor and mouse shape after restoring old_State.

11 months agoruntime(doc): fix some small errors
Christian Brabandt [Tue, 17 Dec 2024 19:24:24 +0000 (20:24 +0100)] 
runtime(doc): fix some small errors

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 months agopatch 9.1.0939: make installtutor fails v9.1.0939
Christian Brabandt [Tue, 17 Dec 2024 19:16:58 +0000 (20:16 +0100)] 
patch 9.1.0939: make installtutor fails

Problem:  make installtutor fails
          (Antonio Giovanni Colombo, after v9.1.0932)
Solution: Fix Makefile rule

Signed-off-by: Christian Brabandt <cb@256bit.org>