]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
17 months agopatch 9.1.0567: Cannot use relative paths as findfile() stop directories v9.1.0567
zeertzjq [Thu, 11 Jul 2024 20:24:15 +0000 (22:24 +0200)] 
patch 9.1.0567: Cannot use relative paths as findfile() stop directories

Problem:  Cannot use relative paths as findfile() stop directories.
Solution: Change a relative path to an absolute path.
          (zeertzjq)

related: #15200
closes: #15202

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0566: Stop dir in findfile() doesn't work properly w/o trailing slash v9.1.0566
zeertzjq [Thu, 11 Jul 2024 20:22:26 +0000 (22:22 +0200)] 
patch 9.1.0566: Stop dir in findfile() doesn't work properly w/o trailing slash

Problem:  Stop directory in findfile() doesn't work properly without a
          trailing slash.
Solution: Always use fnamencmp(), not fnamecmp().

related: #15200
related: #15202

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0565: Stop directory doesn't work properly in 'tags' v9.1.0565
zeertzjq [Thu, 11 Jul 2024 20:19:46 +0000 (22:19 +0200)] 
patch 9.1.0565: Stop directory doesn't work properly in 'tags'

Problem:  Stop directory doesn't work properly in 'tags'.
          (Jesse Pavel)
Solution: Also move the stop directory forward by one byte.
          (zeertzjq)

This doesn't support relative stop directories yet, as they are not
supported in other places like findfile() either.

fixes: #15200
related: #15202

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0564: id() can be faster v9.1.0564
Ernie Rael [Thu, 11 Jul 2024 20:10:45 +0000 (22:10 +0200)] 
patch 9.1.0564: id() can be faster

Problem:  id() can be made faster
Solution: don't use printf(), use clever shift of pointer
          (Ernie Rael)

closes: #15207

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0563: Cannot process any Key event v9.1.0563
Shougo Matsushita [Thu, 11 Jul 2024 20:05:12 +0000 (22:05 +0200)] 
patch 9.1.0563: Cannot process any Key event

Problem:  Cannot process any Key event
Solution: Add the KeyInputPre autocmd
          (Shougo Matsushita)

closes: #15182

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Co-authored-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0562: tests: inconsistency in test_findfile.vim v9.1.0562
zeertzjq [Thu, 11 Jul 2024 19:48:09 +0000 (21:48 +0200)] 
patch 9.1.0562: tests: inconsistency in test_findfile.vim

Problem:  tests: inconsistency in test_findfile.vim, it saves and
          restores 'shellslash', but doesn't actually set it
Solution: Set shellslash explicitly (zeertzjq)

closes: #15217

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(fstab): Add missing keywords to fstab syntax
Christian Brabandt [Thu, 11 Jul 2024 19:45:41 +0000 (21:45 +0200)] 
runtime(fstab): Add missing keywords to fstab syntax

Added overlay, tracefs and fixed the "none" keyword in the fstab syntax definition.

closes: #15217

Signed-off-by: Radu Dineiu <radu.dineiu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0561: netbeans: variable used un-initialized (Coverity) v9.1.0561
Christian Brabandt [Thu, 11 Jul 2024 19:41:23 +0000 (21:41 +0200)] 
patch 9.1.0561: netbeans: variable used un-initialized (Coverity)

Problem:  netbeans: variable used un-initialized (Coverity)
          (after v9.1.0557)
Solution: properly initialize exarg_T struct for use with netbeans

The actual exarg.cmdidx doesn't really matter, but let's use something,
that is not affected by the recent changes (going through the buffer
list) and use CMD_USER.

closes: #15211

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0560: bindtextdomain() does not indicate an error v9.1.0560
Christ van Willegen [Thu, 11 Jul 2024 19:36:21 +0000 (21:36 +0200)] 
patch 9.1.0560: bindtextdomain() does not indicate an error

Problem:  bindtextdomain() does not indicate an error
          (after v9.1.509)
Solution: return false on failure (OOM).
          (Chris van Willegen)

closes: #15116

Signed-off-by: Christ van Willegen <cvwillegen@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0559: translation of vim scripts can be improved v9.1.0559
RestorerZ [Thu, 11 Jul 2024 19:14:15 +0000 (21:14 +0200)] 
patch 9.1.0559: translation of vim scripts can be improved

Problem:  translation of vim scripts can be improved
          (after v9.1.0509)
Solution: improve documentation, add tests, include missing
          libraries for the Windows CI
          (RestorerZ)

closes: #15100

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0558: filetype: prolog detection can be improved v9.1.0558
igna_martinoli [Wed, 10 Jul 2024 19:25:04 +0000 (21:25 +0200)] 
patch 9.1.0558: filetype: prolog detection can be improved

Problem:  filetype: prolog detection can be improved
Solution: Improved the Prolog file detection regex and added tests for
          all cases. (igna_martinoli)

fixes: #10835
closes: #15206

Signed-off-by: igna_martinoli <ignamartinoli@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0557: moving in the buffer list doesn't work as documented v9.1.0557
LemonBoy [Wed, 10 Jul 2024 18:20:48 +0000 (20:20 +0200)] 
patch 9.1.0557: moving in the buffer list doesn't work as documented

Problem:  moving in the buffer list doesn't work as documented
          (SenileFelineS)
Solution: Skip non-help buffers, when run from normal buffers, else
          only move from help buffers to the next help buffer (LemonBoy)

As explained in the help section for :bnext and :bprev the commands
should jump from help buffers to help buffers (and from regular ones to
regular ones).

fixes: #4478
closes: #15198

Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): fix inconsistencies in :h file-searching
zeertzjq [Wed, 10 Jul 2024 18:06:52 +0000 (20:06 +0200)] 
runtime(doc): fix inconsistencies in :h file-searching

closes: #15201

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0556: :bwipe doesn't remove file from jumplist of other tabpages v9.1.0556
zeertzjq [Wed, 10 Jul 2024 17:36:36 +0000 (19:36 +0200)] 
patch 9.1.0556: :bwipe doesn't remove file from jumplist of other tabpages

Problem:  :bwipe doesn't remove file from jumplist and tagstack of other
          tabpages. Time complexity of mark_forget_file() is O(n^2) when
          removing all entries (after v9.1.0554)
Solution: Use FOR_ALL_TAB_WINDOWS().  Start the loops over the arrays
          from the end instead of the start (zeertzjq)

closes: #15199

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(htmlangular): correct comment
Christian Brabandt [Wed, 10 Jul 2024 17:33:33 +0000 (19:33 +0200)] 
runtime(htmlangular): correct comment

related: #15190

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0555: filetype: angular ft detection is still problematic v9.1.0555
Christian Brabandt [Wed, 10 Jul 2024 17:23:39 +0000 (19:23 +0200)] 
patch 9.1.0555: filetype: angular ft detection is still problematic

Problem:  filetype: angular ft detection is still problematic
          (after 9.1.0551)
Solution: detect htmlangular filetype only by inspecting the content,
          do not try to determine it from a generic name like
          '*.component.html'

For the reasons mentioned here:

https://github.com/vim/vim/pull/13594#issuecomment-1834465890

related: #15190
related: #13594
related: #13604

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0554: :bw leaves jumplist and tagstack data around v9.1.0554
LemonBoy [Tue, 9 Jul 2024 18:03:24 +0000 (20:03 +0200)] 
patch 9.1.0554: :bw leaves jumplist and tagstack data around

Problem:  :bw leaves jumplist and tagstack data around
          (Paul "Joey" Clark)
Solution: Wipe jumplist and tagstack references to the wiped buffer
          (LemonBoy)

As documented the :bwipeout command brutally deletes all the references
to the buffer, so let's make it delete all the entries in the jump list
and tag stack referring to the wiped-out buffer.

fixes: #8201
closes: #15185

Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0553: filetype: *.mcmeta files are not recognized v9.1.0553
Tomodachi94 [Tue, 9 Jul 2024 17:55:16 +0000 (19:55 +0200)] 
patch 9.1.0553: filetype: *.mcmeta files are not recognized

Problem:  filetype: *.mcmeta files are not recognized
Solution: Detect '*.mcmeta' files as json filetype
          (Tomodachi94)

"pack.mcmeta" was added to the JSON tests because that is the most common
filename with that extension.

There are currently 34,000 instances of this file extension on GitHub:
https://github.com/search?q=path%3A*.mcmeta&type=code&p=2

.zip files with this extension have downloads in the millions on sites
like CurseForge:
https://www.curseforge.com/minecraft/search?page=1&pageSize=20&sortBy=relevancy&class=texture-packs

Further reading about the file extension:
https://minecraft.wiki/w/Tutorials/Creating_a_resource_pack#Creating_a_.MCMETA_file

closes: #15189

Signed-off-by: Tomodachi94 <tomodachi94@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0552: No test for antlr4 filetype v9.1.0552
Christian Brabandt [Tue, 9 Jul 2024 17:52:20 +0000 (19:52 +0200)] 
patch 9.1.0552: No test for antlr4 filetype

Problem:  No test for antlr4 filetype
          (after 9.1.0550)
Solution: Add a simple filename test

related: #15191

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0551: filetype: htmlangular files are not properly detected v9.1.0551
Dennis van den Berg [Tue, 9 Jul 2024 17:25:33 +0000 (19:25 +0200)] 
patch 9.1.0551: filetype: htmlangular files are not properly detected

Problem:  filetype: htmlangular files are not properly detected
Solution: Use the new htmlangular filetype for angular files, because
          since angular v17, those are no longer valid HTML files.
          (Dennis van den Berg)

Since Angular 17, the new Control Flow Syntax is not valid HTML. This PR
adds a new filetype detection for the HTML templates of Angular.

It first checks the filename. The Angular convention is to use
*.component.html for the template. However, this is not mandatory.

If the filename does not match, it will check the contents of the file
if it contains:

  - One of the Control-Flow blocks: @if, @for, @switch, @defer
  - A structural directive: *ngIf, *ngFor, *ngSwitch, *ngTemplateOutlet
  - Builtin Angular elements: ng-template or ng-content
  - String interpolation: {{ something }}

This enables the Angular LSP to attach only to htmlangular filetypes, as
well as language parsers, such as tree-sitter.

closes: #15190

Signed-off-by: Dennis van den Berg <dennis.vandenberg@nedap.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0550: filetype: antlr4 files are not recognized v9.1.0550
Yinzuo Jiang [Tue, 9 Jul 2024 17:11:18 +0000 (19:11 +0200)] 
patch 9.1.0550: filetype: antlr4 files are not recognized

Problem:  filetype: antlr4 files are not recognized
Solution: Detect '*.g4' as antlr4 filetype, include a simple antlr4
          syntax and filetype plugin (Yinzuo Jiang)

closes: #15191

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0549: fuzzycollect regex based completion not working as expected v9.1.0549
glepnir [Tue, 9 Jul 2024 16:51:29 +0000 (18:51 +0200)] 
patch 9.1.0549: fuzzycollect regex based completion not working as expected

Problem:  fuzzycollect regex based completion not working as expected
Solution: Revert Patch v9.1.0503 (glepnir)

closes: #15192

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): autocmd_add() accepts a list not a dict
Boyang Du [Tue, 9 Jul 2024 16:46:12 +0000 (18:46 +0200)] 
runtime(doc): autocmd_add() accepts a list not a dict

closes: #15180

Signed-off-by: Boyang Du <boyang@synopsys.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0548: it's not possible to get a unique id for some vars v9.1.0548
Ernie Rael [Tue, 9 Jul 2024 16:39:52 +0000 (18:39 +0200)] 
patch 9.1.0548: it's not possible to get a unique id for some vars

Problem:  it's not possible to get a unique id for some vars
Solution: Add the id() Vim script function, which returns a unique
          identifier for object, dict, list, job, blob or channel
          variables (Ernie Rael)

fixes: #14374
closes: #15145

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(tmux): Update syntax script
Eric Pruitt [Tue, 9 Jul 2024 16:32:55 +0000 (18:32 +0200)] 
runtime(tmux): Update syntax script

closes: #15195
related: #15188

Co-authored-by: Contsantine Bulany <61948252+lostl1ght@users.noreply.github.com>
Signed-off-by: Eric Pruitt <eric.pruitt@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0547: No way to get the arity of a Vim function v9.1.0547
LemonBoy [Tue, 9 Jul 2024 16:24:59 +0000 (18:24 +0200)] 
patch 9.1.0547: No way to get the arity of a Vim function

Problem:  No way to get the arity of a Vim function
          (Austin Ziegler)
Solution: Enhance get() Vim script function to return the function
          argument info using get(func, "arity") (LemonBoy)

fixes: #15097
closes: #15109

Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0546: vim-tiny fails on CTRL-X/CTRL-A v9.1.0546
Christian Brabandt [Mon, 8 Jul 2024 19:12:55 +0000 (21:12 +0200)] 
patch 9.1.0546: vim-tiny fails on CTRL-X/CTRL-A

Problem:  vim-tiny fails on CTRL-X/CTRL-A
          (Rob Foehl, after 9.1.0172)
Solution: Move #ifdefs, so that after changing the line in del_bytes,
          the cached textlen value is invalidated

closes: #15178

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(hlsplaylist): include hlsplaylist ftplugin file
AvidSeeker [Mon, 8 Jul 2024 19:10:08 +0000 (21:10 +0200)] 
runtime(hlsplaylist): include hlsplaylist ftplugin file

fixes: #15156
closes: #15162

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: AvidSeeker <avidseeker7@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): fix typo in :h ft-csv-syntax
zeertzjq [Mon, 8 Jul 2024 19:02:14 +0000 (21:02 +0200)] 
runtime(doc): fix typo in :h ft-csv-syntax

closes: #15179

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): Correct shell command to get $VIMRUNTIME into shell
Shane Harper [Mon, 8 Jul 2024 18:59:33 +0000 (20:59 +0200)] 
runtime(doc): Correct shell command to get $VIMRUNTIME into shell

The original shell command could set the VIMRUNTIME variable to an
invalid path.
    - since v9.0.0592 trailing spaces were typically added making the
      path invalid. (I observed that spaces were added if the length of
      the path wasn't equal to one less than an integer multiple of the
      number of display columns.)
    - newline character/s would be added, making the path invalid, if
      the path was longer than the number of display columns.

The new command is shorter than the original command.

closes: #15184

Signed-off-by: Shane Harper <shane@shaneharper.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0545: MSVC conversion warning v9.1.0545
Ernie Rael [Mon, 8 Jul 2024 18:42:45 +0000 (20:42 +0200)] 
patch 9.1.0545: MSVC conversion warning

Problem:  MSVC conversion warning (LemonBoy, after 9.1.0522)
Solution: Use size_t instead of int, fix style of casts
          (Ernie Rael)

related: #15082
closes: #15187

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0544: filetype: ldapconf files are not recognized v9.1.0544
Riley Bruins [Sun, 7 Jul 2024 19:20:22 +0000 (21:20 +0200)] 
patch 9.1.0544: filetype: ldapconf files are not recognized

Problem:  filetype: ldapconf files are not recognized
Solution: Detect '.ldaprc', 'ldap.conf' and 'ldaprc' files as ldapconf
          filetype, include a simple ldapconf ftplugin file
          (Riley Bruins)

[Specification](https://www.openldap.org/software//man.cgi?query=ldap.conf&sektion=5&apropos=0&manpath=OpenLDAP+2.4-Release)

closes: #15176

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(cmakecache): include cmakecache ftplugin file
Riley Bruins [Sun, 7 Jul 2024 19:18:31 +0000 (21:18 +0200)] 
runtime(cmakecache): include cmakecache ftplugin file

closes: #15175

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(lex): include lex ftplugin file
Riley Bruins [Sun, 7 Jul 2024 19:17:16 +0000 (21:17 +0200)] 
runtime(lex): include lex ftplugin file

Spec found [here](https://docs.oracle.com/cd/E19504-01/802-5880/lex-6/index.html)

closes: #15174

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(yacc): include yacc ftplugin file
Riley Bruins [Sun, 7 Jul 2024 19:16:08 +0000 (21:16 +0200)] 
runtime(yacc): include yacc ftplugin file

closes: #15173

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(squirrel): include squirrel ftplugin file
Riley Bruins [Sun, 7 Jul 2024 19:14:59 +0000 (21:14 +0200)] 
runtime(squirrel): include squirrel ftplugin file

Comment spec found [here](https://squirrel-lang.org/squirreldoc/reference/language/lexical_structure.html#comments)

closes: #15172

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(objcpp): include objcpp ftplugin file
Riley Bruins [Sun, 7 Jul 2024 19:10:10 +0000 (21:10 +0200)] 
runtime(objcpp): include objcpp ftplugin file

This one just sources the objc.vim ftplugin.

closes: #15170

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(tf): include tf ftplugin file
Riley Bruins [Sun, 7 Jul 2024 19:07:56 +0000 (21:07 +0200)] 
runtime(tf): include tf ftplugin file

Adds ftplugin support for tf (TinyFugue). Comment support taken from
[here](https://github.com/kruton/tinyfugue/blob/1e8ac0bb014036c07bb3c679b0292ef20a6a0bb5/src/command.c#L568)

closes: #15168

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(mysql): include mysql ftplugin file
Riley Bruins [Sun, 7 Jul 2024 19:02:23 +0000 (21:02 +0200)] 
runtime(mysql): include mysql ftplugin file

This one just sources from the SQL ftplugin. Without this, *.mysql
files don't inherit the common SQL settings.

closes: #15166

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(javacc): include javacc ftplugin file
Riley Bruins [Sun, 7 Jul 2024 18:59:42 +0000 (20:59 +0200)] 
runtime(javacc): include javacc ftplugin file

closes: #15167

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(cabal): include cabal ftplugin file
Riley Bruins [Sun, 7 Jul 2024 18:58:10 +0000 (20:58 +0200)] 
runtime(cabal): include cabal ftplugin file

closes: #15158

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(cuda): include CUDA ftplugin file
Riley Bruins [Sun, 7 Jul 2024 18:56:43 +0000 (20:56 +0200)] 
runtime(cuda): include CUDA ftplugin file

closes: #15159

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(editorconfig): include editorconfig ftplugin file
Riley Bruins [Sun, 7 Jul 2024 18:54:32 +0000 (20:54 +0200)] 
runtime(editorconfig): include editorconfig ftplugin file

closes: #15160

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(kivy): update kivy syntax, include ftplugin
Riley Bruins [Sun, 7 Jul 2024 18:53:04 +0000 (20:53 +0200)] 
runtime(kivy): update kivy syntax, include ftplugin

Kivy uses "#:" for preprocessing commands (like "#:import ...") which
were overridden by the comment syntax. This has been changed, and a
commentstring has been added.

closes: #15163

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(syntax-tests): Stop generating redundant "*_99.dump" files
Aliaksei Budavei [Sun, 7 Jul 2024 18:51:14 +0000 (20:51 +0200)] 
runtime(syntax-tests): Stop generating redundant "*_99.dump" files

- Remove the code handling their generation.
- Remove the code written for the shell filetype to clear up
  the buffer screen before such a file can be generated.
- Remove all but "yaml.yaml_99.dump" of such generated files
  (since there is no published "input/yaml.yaml.yaml", let
  its maintainer regenerate screen dump files and remove
  redundant ones).

The new algorithm turns a "*_99.dump" file obsolete because
all lines written in such a file will already be present in
lower-numbered "*.dump" files.

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0543: Behavior of CursorMovedC is strange v9.1.0543
zeertzjq [Sun, 7 Jul 2024 18:48:25 +0000 (20:48 +0200)] 
patch 9.1.0543: Behavior of CursorMovedC is strange

Problem:  Behavior of CursorMovedC is strange.
Solution: Also trigger when the cmdline has changed.
          (zeertzjq)

fixes: #15069
closes: #15071

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(vim): Update base-syntax, improve :match command highlighting
Doug Kearns [Sun, 7 Jul 2024 18:45:37 +0000 (20:45 +0200)] 
runtime(vim): Update base-syntax, improve :match command highlighting

Match group and pattern arguments to :match commands.

closes: #15096

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0542: Vim9: confusing string() output for object functions v9.1.0542
Ernie Rael [Sun, 7 Jul 2024 18:41:44 +0000 (20:41 +0200)] 
patch 9.1.0542: Vim9: confusing string() output for object functions

Problem:  Vim9: confusing string() output for object functions
Solution: improve the output for object functions (Ernie Rael)

fixes: #15129
closes: #15143

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0541: failing test with Vim configured without channel v9.1.0541
Dominique Pellé [Sun, 7 Jul 2024 18:37:12 +0000 (20:37 +0200)] 
patch 9.1.0541: failing test with Vim configured without channel

Problem:  failing test with Vim configured without channel
Solution: In the test Test_null_values() verify that the 'channel' and
          'job' feature is present in Vim. (Dominique Pellé)

Test `Test_null_values` was failing when vim is configured without
channel because the test uses function `null_channel()` (which
requires the `+channel` feature) and using `null_job()` which
requires the `+job` feature. But was reproducible when vim is
configured with:
```
./configure --with-features=huge --enable-gui=none --disable-channel
```

Only check `null_channel()` when the `+channel` feature is available.
Only check `null_job()` when the `+job` feature is available.

closes: #15177

Signed-off-by: Dominique Pellé <dominique.pelle@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0540: Unused assignment in sign_define_cmd() v9.1.0540
zeertzjq [Sun, 7 Jul 2024 18:33:46 +0000 (20:33 +0200)] 
patch 9.1.0540: Unused assignment in sign_define_cmd()

Problem:  Unused assignment in sign_define_cmd()
Solution: Remove the assignment.  Also document the "priority" flag of
          sign_define(). (zeertzjq)

closes: #15169

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): add page-scrolling keys to index.txt
Christian Brabandt [Sun, 7 Jul 2024 18:30:59 +0000 (20:30 +0200)] 
runtime(doc): add page-scrolling keys to index.txt

Also add the newly documented keys from commit 6a4afb1efca1bac5fbc0281804591cf0a52b2d81
to index.txt which was forgotten.

related: #15107

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): add reference to xterm-focus-event from FocusGained/Lost
Christian Brabandt [Sun, 7 Jul 2024 18:29:43 +0000 (20:29 +0200)] 
runtime(doc): add reference to xterm-focus-event from FocusGained/Lost

fixes: #15157

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0539: Not enough tests for what v9.1.0535 fixed v9.1.0539
Christian Brabandt [Sun, 7 Jul 2024 17:44:16 +0000 (19:44 +0200)] 
patch 9.1.0539: Not enough tests for what v9.1.0535 fixed

Problem:  Not enough tests for what v9.1.0535 fixed
Solution: Add another test for ex-mode

This comes from: https://groups.google.com/g/vim_dev/c/F5-tDqoafz8/m/GqKF-uQsLD0J

related: #15120

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): clarify how to re-init csv syntax file
Christian Brabandt [Sun, 7 Jul 2024 17:24:36 +0000 (19:24 +0200)] 
runtime(doc): clarify how to re-init csv syntax file

fixes: #15161

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0538: not possible to assign priority when defining a sign v9.1.0538
LemonBoy [Sat, 6 Jul 2024 16:04:09 +0000 (18:04 +0200)] 
patch 9.1.0538: not possible to assign priority when defining a sign

Problem:  not possible to assign priority when defining a sign
          (Mathias Fußenegger)
Solution: Add the priority argument for the :sign-define ex command and
          the sign_define() function (LemonBoy)

Use the specified value instead of the default one (SIGN_DEF_PRIO) when
no priority is explicitly specified in sign_place or :sign place.

fixes: #8334
closes: #15124

Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0537: signed number detection for CTRL-X/A can be improved v9.1.0537
distobs [Sat, 6 Jul 2024 15:50:09 +0000 (17:50 +0200)] 
patch 9.1.0537: signed number detection for CTRL-X/A can be improved

Problem:  signed number detection for CTRL-X/A can be improved
          (Chris Patuzzo)
Solution: Add the new "blank" value for the 'nrformat' setting. This
          will make Vim assume a signed number only if there is a blank
          in front of the sign.
          (distobs)

fixes: #15033
closes: #15110

Signed-off-by: distobs <cuppotatocake@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0536: filetype: zone files are not recognized v9.1.0536
Christian Brabandt [Sat, 6 Jul 2024 15:39:18 +0000 (17:39 +0200)] 
patch 9.1.0536: filetype: zone files are not recognized

Problem:  filetype: zone files are not recognized
          (rpdprd)
Solution: Detect '*.zone' files as bindzone filetype

fixes: #14222

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0535: newline escape wrong in ex mode v9.1.0535
Mohamed Akram [Sat, 6 Jul 2024 15:12:09 +0000 (17:12 +0200)] 
patch 9.1.0535: newline escape wrong in ex mode

Problem:  newline escape wrong in ex mode (Konrad Schwarz)
Solution: partly revert patch 7.3.014, remove backslash in front of a
          newline when not in prompt mode in ex line mode
          (Mohamed Akram)

This fixes newline escaping to allow passing multiple commands to
":global", multiple lines to shell commands, and ending lines in append
mode with backslashes. This should fix a POSIX/(traditional) VI
incompatiblity.

This reverts a previous incorrect attempt at patch v7.3.014 to fix
append mode which removed half of trailing backslashes which lead to,
eg. the following two commands being parsed as having a different number
of backslashes:

```
!echo foo\\\
```

```
!echo foo\\ \
```

fixes: #6135
fixes: #7244
closes: #15120

Signed-off-by: Mohamed Akram <mohd.akram@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(man): honor cmd modifiers before `g:ft_man_open_mode`
Ivan Shapovalov [Sat, 6 Jul 2024 14:56:02 +0000 (16:56 +0200)] 
runtime(man): honor cmd modifiers before `g:ft_man_open_mode`

Give priority to (placement) command modifiers, specifically
`:vertical`, `:horizontal` and `:tab`, ahead of `g:ft_man_open_mode`,
so that if the user says e.g. `:vert Man`, Vim does the expected thing.

closes: #15117

Signed-off-by: Ivan Shapovalov <intelfx@intelfx.name>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(man): use `nnoremap` to map to Ex commands
Ivan Shapovalov [Sat, 6 Jul 2024 14:16:40 +0000 (16:16 +0200)] 
runtime(man): use `nnoremap` to map to Ex commands

If the user plays rebinding games such as

    nnoremap : ,
    nnoremap , :

(cf. https://konfekt.github.io/blog/2016/10/03/get-the-leader-right),
then the mappings defined by man.vim will become non-functional.

closes: #15130

Signed-off-by: Ivan Shapovalov <intelfx@intelfx.name>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0534: completion wrong with fuzzy when cycling back to original v9.1.0534
glepnir [Sat, 6 Jul 2024 14:09:19 +0000 (16:09 +0200)] 
patch 9.1.0534: completion wrong with fuzzy when cycling back to original

Problem:  completion wrong with fuzzy when cycling back to original
          (Quan Nguyen)
Solution: reset show_match_ok when cp_score is zero (glepnir)

fixes: #15095
closes: #15105

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(syntax-tests): Abort and report failed cursor progress
Aliaksei Budavei [Fri, 5 Jul 2024 18:30:02 +0000 (21:30 +0300)] 
runtime(syntax-tests): Abort and report failed cursor progress

Track the cursor forward progress through a syntax test file
so that any degenerate input can be checked and reported.

closes: #15150

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(syntax-tests): Introduce self tests for screen dumping
Aliaksei Budavei [Fri, 24 May 2024 16:14:16 +0000 (19:14 +0300)] 
runtime(syntax-tests): Introduce self tests for screen dumping

Write a batch of test files with made-up syntax to serve for
additional linewise checks to be manually performed whenever
the algorithm for screen dump file generation is modified.

Define a shell variable VIM_SYNTAX_SELF_TESTING to run these
tests:
cd runtime/syntax/
VIM_SYNTAX_SELF_TESTING=1 make clean test

related: #15150

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(syntax-tests): Clear and redraw the ruler line with the shell info
Aliaksei Budavei [Mon, 20 May 2024 22:12:22 +0000 (01:12 +0300)] 
runtime(syntax-tests): Clear and redraw the ruler line with the shell info

The current contents of sh_01_99.dump and sh_09_99.dump
begin with ":redraw" in the ruler line whereas both the
comment and the need for the redraw command execution imply
blanks "       ".

related: #15150

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(syntax-tests): Allow for folded and wrapped lines in syntax test files
Aliaksei Budavei [Mon, 20 May 2024 22:10:26 +0000 (01:10 +0300)] 
runtime(syntax-tests): Allow for folded and wrapped lines in syntax test files

The current implementation falls short for syntax test files
on two accounts:
1. With folded lines -- some lines before folded lines are
    unnecessarily repeated in generated dump files because
    closed folded lines are always treated as opened for the
    cursor to move _in_ instead of to move _over_ them.
2. With wrapped lines (longer than 75 columns) -- some lines
    are omitted in generated dump files because calculations
    for the cursor progress and its movement commands only
    refer to file lines and not their layout within a 20x75
    buffer (less &cmdheight).

As an alternative, we abandon deterministic (and inaccurate
at times) calculations for the cursor progress and, instead,
advance the cursor by as much as before for a single dump
file, but now rely on marking the last visible line and
additional movement to position lines at desired offsets,
carefully preserving compatibility for the &scrolloff and
&ruler values inherited from defaults.vim.  The parent Vim
process will keep track of progress through a syntax test
file made by its child process ("terminal") by reading the
rightmost end of the ruler line from the terminal buffer,
looking for " All " or " Bot " for its cue to finish dump
file generation.

With these changes applied, the lossless line length limit
will be raised from 75 to 1425 (for a 19x75 view) columns.

Also, prefer "lastline" to "truncate" for &display; hiding
the content of any last _long_ line in a view goes against
the purpose of syntax file testing -- all lines should be
recorded.

related: #15150
fixes: #14245

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0533: Vim9: need more tests for nested objects equality v9.1.0533
Ernie Rael [Sat, 6 Jul 2024 09:44:37 +0000 (11:44 +0200)] 
patch 9.1.0533: Vim9: need more tests for nested objects equality

Problem:  Vim9: need more tests for nested objects equality
Solution: Add more tests (Ernie Rael)

related: #15070
related: #15081
related: #15085
closes: #15153

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoCI: Pre-v9.0.0110 versions generate bogus documentation tag entries
Aliaksei Budavei [Sat, 6 Jul 2024 09:37:04 +0000 (11:37 +0200)] 
CI: Pre-v9.0.0110 versions generate bogus documentation tag entries

Problem:  CI: Pre-v9.0.0110 versions generate bogus documentation tag
          entries
Solution: Set $VIMPROG to the freshly compiled Vim (Aliaksei Budavei)

related: #10813
related: #15099

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): Remove wrong help tag CTRL-SHIFT-CR
Christian Brabandt [Sat, 6 Jul 2024 09:29:38 +0000 (11:29 +0200)] 
runtime(doc): Remove wrong help tag CTRL-SHIFT-CR

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0532: filetype: Cedar files not recognized v9.1.0532
Riley Bruins [Fri, 5 Jul 2024 19:14:26 +0000 (21:14 +0200)] 
patch 9.1.0532: filetype: Cedar files not recognized

Problem:  filetype: Cedar files not recognized
Solution: Detect '*.cedar' files as cedar filetype
          (Riley Bruins)

References: https://github.com/cedar-policy

closes: #15148

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): document further keys that scroll page up/down
Christian Brabandt [Fri, 5 Jul 2024 19:09:35 +0000 (21:09 +0200)] 
runtime(doc): document further keys that scroll page up/down

fixes: #15107

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0531: resource leak in mch_get_random() v9.1.0531
Christian Brabandt [Fri, 5 Jul 2024 07:54:30 +0000 (09:54 +0200)] 
patch 9.1.0531: resource leak in mch_get_random()

Problem:  resource leak in mch_get_random() (after v9.1.0518)
Solution: close file descriptor after reading successfully
          from /dev/urandom

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(tutor): Fix wrong spanish translation
Rodolfo Guagnini [Thu, 4 Jul 2024 18:04:26 +0000 (20:04 +0200)] 
runtime(tutor): Fix wrong spanish translation

closes: #15127

Signed-off-by: Rodolfo Guagnini <rodolfo.guagnini@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(netrw): fix remaining case of register clobber
Enno [Thu, 4 Jul 2024 17:44:42 +0000 (19:44 +0200)] 
runtime(netrw): fix remaining case of register clobber

complements 62f7b55c1a4564f8744af9446bc7af47fe16a245

closes: #15114

Signed-off-by: Enno <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0530: xxd: MSVC warning about non-ASCII character v9.1.0530
Ken Takata [Thu, 4 Jul 2024 17:35:48 +0000 (19:35 +0200)] 
patch 9.1.0530: xxd: MSVC warning about non-ASCII character

Problem:  xxd: MSVC warning about non-ASCII character
Solution: Specify source-charset:utf-8 in Makefile (Ken Takata)

xxd.c has non-ASCII-character comments. This causes the following
warning on MSVC:
```
warning C4819: The file contains a character that cannot be represented
in the current code page (932). Save the file in Unicode format to
prevent data loss.
```

Add the `/source-charset:utf-8` option to avoid this.

closes: #15119

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0529: silent! causes following try/catch to not work v9.1.0529
LemonBoy [Thu, 4 Jul 2024 17:23:16 +0000 (19:23 +0200)] 
patch 9.1.0529: silent! causes following try/catch to not work

Problem:  silent! causes following try/catch to not work
          (Malcolm Rowe)
Solution: consider emsg_silent in handle_did_throw() and do not abort
          evaluation flow for :silent! (LemonBoy)

The silent! flag causes the evaluation not to be aborted in case of
uncaught exceptions, adjust handle_did_throw to take this detail into
account.

Fixes the long-standing todo.txt item:
```
Problem that a previous silent ":throw" causes a following try/catch not
to work. (ZyX, 2013 Sep 28) With examples: (Malcolm Rowe, 2015 Dec 24)
Also see #8487 for an example.
```

fixes: #538
closes: #15128

Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(rust): use shiftwidth() in indent script
novenary [Thu, 4 Jul 2024 17:11:16 +0000 (19:11 +0200)] 
runtime(rust): use shiftwidth() in indent script

closes: #15138

Signed-off-by: novenary <novenary@kwak.zip>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0528: spell completion message still wrong in translations v9.1.0528
Kyle Kovacs [Thu, 4 Jul 2024 15:51:09 +0000 (17:51 +0200)] 
patch 9.1.0528: spell completion message still wrong in translations

Problem:  spell completion message still wrong in translations
          (after 9.1.0512)
Solution: Update translation files with the new message
          (Kyle Kovacs)

closes: #15113

Signed-off-by: Kyle Kovacs <kkovacs@diconfiberoptics.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0527: inconsistent parameter in Makefiles for Vim executable v9.1.0527
RestorerZ [Thu, 4 Jul 2024 15:47:16 +0000 (17:47 +0200)] 
patch 9.1.0527: inconsistent parameter in Makefiles for Vim executable

Problem:  inconsistent parameter in Makefiles for Vim executable
Solution: consistently use $VIMPROG across all Makefiles
          (RestorerZ)

closes: #15099

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0526: Unwanted cursor movement with pagescroll at start of buffer v9.1.0526
Luuk van Baal [Thu, 4 Jul 2024 15:35:56 +0000 (17:35 +0200)] 
patch 9.1.0526: Unwanted cursor movement with pagescroll at start of buffer

Problem:  Cursor is moved to bottom of window trying to pagescroll when
          already at the start of the buffer (Asheq Imran, after v9.1.0357)
Solution: Don't move cursor when buffer content did not move.
          (Luuk van Baal)

closes: #15139

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): mention $XDG_CONFIG_HOME instead of $HOME/.config
Christian Brabandt [Thu, 4 Jul 2024 15:31:06 +0000 (17:31 +0200)] 
runtime(doc): mention $XDG_CONFIG_HOME instead of $HOME/.config

This makes it more consistent with :h vimrc and is more correct (in the
case when $XDG_CONFIG_HOME has been defined to point to some other
location.

fixes: #15108

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0525: Right release selects immediately when pum is truncated. v9.1.0525
zeertzjq [Thu, 4 Jul 2024 15:26:37 +0000 (17:26 +0200)] 
patch 9.1.0525: Right release selects immediately when pum is truncated.

Problem:  Right release selects immediately when pum is truncated.
Solution: Use pum_height instead of pum_size when checking click row.
          Don't place it above mouse row when there is more space below.
          (zeertzjq)

fixes: #15101
closes: #15102

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0524: the recursive parameter in the *_equal functions can be removed v9.1.0524
Yinzuo Jiang [Thu, 4 Jul 2024 15:20:53 +0000 (17:20 +0200)] 
patch 9.1.0524: the recursive parameter in the *_equal functions can be removed

Problem:  the recursive parameter in the *_equal functions can be removed
Solution: Remove the recursive parameter in dict_equal(), list_equal()
          object_equal and tv_equal(). Use a comparison of the static
          var recursive_cnt == 0 to determine whether or not tv_equal()
          has been called recursively (Yinzuo Jiang).

closes: #15070

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(termdebug): Add Deprecation warnings
Ubaldo Tiberi [Thu, 4 Jul 2024 15:14:03 +0000 (17:14 +0200)] 
runtime(termdebug): Add Deprecation warnings

closes: #15091

Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@google.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0523: Vim9: cannot downcast an object v9.1.0523
LemonBoy [Thu, 4 Jul 2024 15:03:17 +0000 (17:03 +0200)] 
patch 9.1.0523: Vim9: cannot downcast an object

Problem:  Vim9: cannot downcast an object (Ernie Rael)
Solution: Fix class downcasting issue (LemonBoy).

When casting an object from one class to another the target type may be
a subclass (downcast) or superclass (upcast) of the source one.
Upcasts require a runtime type check to be emitted.

Add a disassembly test.

fixes: #13244
closes: #15079

Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0522: Vim9: string(object) hangs for recursive references v9.1.0522
Ernie Rael [Thu, 4 Jul 2024 14:50:11 +0000 (16:50 +0200)] 
patch 9.1.0522: Vim9: string(object) hangs for recursive references

Problem:  Vim9: string(object) hangs for recursive references
Solution: Handle recursive objects specifically, add a hang test and a
          compare test (Ernie Rael)

fixes: #15080
closes: #15082

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0521: if_py: _PyObject_CallFunction_SizeT is dropped in Python 3.13 v9.1.0521
Yaakov Selkowitz [Thu, 4 Jul 2024 14:36:05 +0000 (16:36 +0200)] 
patch 9.1.0521: if_py: _PyObject_CallFunction_SizeT is dropped in Python 3.13

Problem:  if_py: _PyObject_CallFunction_SizeT is dropped in Python 3.13
Solution: define PyObject_CallFunction for Python >= 3.13
          (Yaakov Selkowitz)

references: python/cpython#105051

closes: #15088

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0520: Vim9: incorrect type checking for modifying lists v9.1.0520
LemonBoy [Thu, 4 Jul 2024 11:43:12 +0000 (13:43 +0200)] 
patch 9.1.0520: Vim9: incorrect type checking for modifying lists

Problem:  Vim9: incorrect type checking for modifying lists
Solution: Correctly assign the member declared types and generate
          typechecks, add disassembly test (LemonBoy)

fixes: #15090
closes: #15094

Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(manpager): avoid readonly prompt
Enno [Thu, 4 Jul 2024 11:37:10 +0000 (13:37 +0200)] 
runtime(manpager): avoid readonly prompt

fixes: #15103
closes: #15106

Signed-off-by: Enno <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0519: MS-Windows: libvterm compilation can be optimized v9.1.0519
Ken Takata [Thu, 4 Jul 2024 11:31:25 +0000 (13:31 +0200)] 
patch 9.1.0519: MS-Windows: libvterm compilation can be optimized

Problem:  MS-Windows: libvterm compilation can be optimized
Solution: Enable batch inference for libvterm (Ken Takata)

Enable batch inference for libvterm by using $(OBJDIR)/libvterm as the
object directory. This should make the compilation process a bit faster.

closes: #15118

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0518: initialize the random buffer can be improved v9.1.0518
LemonBoy [Thu, 4 Jul 2024 11:20:49 +0000 (13:20 +0200)] 
patch 9.1.0518: initialize the random buffer can be improved

Problem:  initialize the random buffer can be improved
Solution: refactor init_srand() function, move machine-specific parts to
          os_mswin and os_unix, implement a fallback for Windows 10 and
          later (LemonBoy)

closes: #15125

Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0517: MS-Windows: too long lines in Make_mvc.mak v9.1.0517
Ken Takata [Thu, 4 Jul 2024 09:51:30 +0000 (11:51 +0200)] 
patch 9.1.0517: MS-Windows: too long lines in Make_mvc.mak

Problem:  MS-Windows: too long lines in Make_mvc.mak
Solution: Wrap long lines in Make_mvc.mak (Ken Takata)

closes: #15133

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(terraform): Add filetype plugin for terraform
Janno Tjarks [Thu, 4 Jul 2024 09:44:01 +0000 (11:44 +0200)] 
runtime(terraform): Add filetype plugin for terraform

- Adds commentstring property for terraform
- Adds comments property for terraform

closes: #15144

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Janno Tjarks <janno.tjarks@mailbox.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(dockerfile): enable spellchecking of comments in syntax script
Kafva [Thu, 4 Jul 2024 09:38:00 +0000 (11:38 +0200)] 
runtime(dockerfile): enable spellchecking of comments in syntax script

closes: #15147

Signed-off-by: Kafva <36083692+Kafva@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): rename variable for pandoc markdown support
Christian Brabandt [Thu, 4 Jul 2024 09:23:51 +0000 (11:23 +0200)] 
runtime(doc): rename variable for pandoc markdown support

fixes: #15141

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): In builtin overview use {buf} as param for appendbufline/setbufline...
errael [Mon, 24 Jun 2024 19:27:01 +0000 (12:27 -0700)] 
runtime(doc): In builtin overview use {buf} as param for appendbufline/setbufline (#15089)

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(doc): clarify, that register 1-9 will always be shifted
Christian Brabandt [Sun, 23 Jun 2024 18:24:52 +0000 (20:24 +0200)] 
runtime(doc): clarify, that register 1-9 will always be shifted

related: #15077

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(netrw): save and restore register 0-9, a and unnamed
Christian Brabandt [Sun, 23 Jun 2024 18:23:40 +0000 (20:23 +0200)] 
runtime(netrw): save and restore register 0-9, a and unnamed

fixes: #15077

Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(termdebug): Refactored StartDebug_term and EndDebug functions
Ubaldo Tiberi [Sun, 23 Jun 2024 15:25:05 +0000 (17:25 +0200)] 
runtime(termdebug): Refactored StartDebug_term and EndDebug functions

- Functions are way too long. Readability and maintainability should
be slightly improved.

- Some variables are re-assigned to their initial value at teardown.
This should not be needed since all internal variables are
re-initialized at startup of every Termdebug session.

closes: #15086

Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(java): Compose "g:java_highlight_signature" and "g:java_highlight_functions"
Aliaksei Budavei [Sun, 23 Jun 2024 08:03:33 +0000 (10:03 +0200)] 
runtime(java): Compose "g:java_highlight_signature" and "g:java_highlight_functions"

With the variables defined, distinctly highlight parts of
a method declaration header: its name and parameter list
parens, from its type parameters, return type, and formal
parameters; and distinctly highlight parts of a lambda
expression: its parameter list parens and the arrow, from
its formal parameters and identifiers.

closes: #15083

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0516: need more tests for nested dicts and list comparision v9.1.0516
Yegappan Lakshmanan [Sun, 23 Jun 2024 08:00:04 +0000 (10:00 +0200)] 
patch 9.1.0516: need more tests for nested dicts and list comparision

Problem:  need more tests for nested dicts and list comparision
Solution: Add tests for comparing deeply nested List/Dict values
          (Yegappan Lakshmanan)

closes: #15081

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>