]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
118 min agopatch 9.1.0448: compiler warning in eval.c master v9.1.0448
Yegappan Lakshmanan [Wed, 29 May 2024 05:51:50 +0000 (07:51 +0200)] 
patch 9.1.0448: compiler warning in eval.c

Problem:  compiler warning in eval.c (after v9.1.0429)
Solution: refactor code (Yegappan Lakshmanan)

fixes: #14847
closes: #14867

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
25 hours agoruntime(stylus): remove remaining css code (#14866)
zeertzjq [Tue, 28 May 2024 06:23:41 +0000 (14:23 +0800)] 
runtime(stylus): remove remaining css code (#14866)

This seems to be a forgotten fixup in https://github.com/vim/vim/commit/2d919d2744a99c9bb9e79984e85b8e8f5ec14c07#r141568461

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
40 hours agoruntime(doc): Add ft_hare.txt to Reference Manual TOC
h-east [Mon, 27 May 2024 15:12:57 +0000 (17:12 +0200)] 
runtime(doc): Add ft_hare.txt to Reference Manual TOC

while at it, also re-align ft_context.txt with the rest of the
list.

closes: #14863

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
42 hours agoruntime(vim): re-generate vim syntax from generator
Christian Brabandt [Mon, 27 May 2024 13:50:07 +0000 (15:50 +0200)] 
runtime(vim): re-generate vim syntax from generator

related: #14861

Signed-off-by: Christian Brabandt <cb@256bit.org>
42 hours agoruntime(vim): fix syntax vim bug (Close #14858) (#14861)
h_east [Mon, 27 May 2024 13:40:25 +0000 (22:40 +0900)] 
runtime(vim): fix syntax vim bug (Close #14858) (#14861)

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
42 hours agopatch 9.1.0447: completion may be wrong when deleting all chars v9.1.0447
glepnir [Mon, 27 May 2024 13:11:01 +0000 (15:11 +0200)] 
patch 9.1.0447: completion may be wrong when deleting all chars

Problem:  completion may be wrong when deleting all chars
Solution: reset compl_shown_match

closes: #14854

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agopatch 9.1.0446: getregionpos() inconsistent for partly-selected multibyte char v9.1.0446
zeertzjq [Sun, 26 May 2024 16:42:18 +0000 (18:42 +0200)] 
patch 9.1.0446: getregionpos() inconsistent for partly-selected multibyte char

Problem:  getregionpos() behaves inconsistently for a partly-selected
          multibyte char.
Solution: Always use column of the first byte for a partly-selected
          multibyte char (zeertzjq).

closes: #14851

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agoruntime(typescriptreact): fix highlighting nested and escaped quotes in string props...
Linda_pp [Sun, 26 May 2024 16:22:26 +0000 (01:22 +0900)] 
runtime(typescriptreact): fix highlighting nested and escaped quotes in string props (#14852)

Signed-off-by: rhysd <lin90162@yahoo.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agoruntime(asm): remove the indent plugin since it has too many issues
Christian Brabandt [Sun, 26 May 2024 16:04:19 +0000 (18:04 +0200)] 
runtime(asm): remove the indent plugin since it has too many issues

fixes: #14791

Signed-off-by: Christian Brabandt <cb@256bit.org>
3 days agoruntime(debian): update Debian runtime files (#14849)
James McCoy [Sat, 25 May 2024 18:56:49 +0000 (14:56 -0400)] 
runtime(debian): update Debian runtime files (#14849)

* Add space in template for 'commentstring'
* Add 'comments' and 'commentstring' support to debcontrol
* debversions: Move Ubuntu releases outside of standard support to unsupported
  Although trust, xenial, and bionic are not EOL yet, their standard support period has ended.

Reported-by: Riley Bruins <ribru17@gmail.com>
Co-authored-by: Riley Bruins <ribru17@gmail.com>
Signed-off-by: James McCoy <jamessan@debian.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 days agopatch 9.1.0445: Coverity warning after 9.1.0440 v9.1.0445
Yegappan Lakshmanan [Sat, 25 May 2024 18:23:54 +0000 (20:23 +0200)] 
patch 9.1.0445: Coverity warning after 9.1.0440

Problem:  Coverity warning after 9.1.0440
Solution: Fix Coverity warning, add a test and
          reduce the calls to clear_tv()
          (Yegappan Lakshmanan).

closes: #14845

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 days agopatch 9.1.0444: Not enough tests for getregion() with multibyte chars v9.1.0444
zeertzjq [Sat, 25 May 2024 08:25:36 +0000 (10:25 +0200)] 
patch 9.1.0444: Not enough tests for getregion() with multibyte chars

Problem:  Not enough tests for getregion() with multibyte chars.
Solution: Add a few more tests (zeertzjq).

closes: #14844

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 days agopatch 9.1.0443: Can't use blockwise selection with width for getregion() v9.1.0443
zeertzjq [Fri, 24 May 2024 17:07:12 +0000 (19:07 +0200)] 
patch 9.1.0443: Can't use blockwise selection with width for getregion()

Problem:  Can't use a blockwise selection with a width for getregion().
Solution: Add support for blockwise selection with width like the return
          value of getregtype() or the "regtype" value of TextYankPost
          (zeertzjq).

closes: #14842

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 days agoruntime(typescript): update outdated syntax files
rhysd [Fri, 24 May 2024 16:59:10 +0000 (18:59 +0200)] 
runtime(typescript): update outdated syntax files

fixes: #14721
fixes: HerringtonDarkholme/yats.vim#277
closes: #14840

Signed-off-by: rhysd <lin90162@yahoo.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 days agoruntime(i3config/swayconfig): fix floating_modifier highlight (#14841)
Josef Litoš [Fri, 24 May 2024 15:31:36 +0000 (17:31 +0200)] 
runtime(i3config/swayconfig): fix floating_modifier highlight (#14841)

Signed-off-by: JosefLitos <litosjos@fit.cvut.cz>
Signed-off-by: James Eapen <james.eapen@vai.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 days agopatch 9.1.0442: hare runtime files outdated v9.1.0442
Amelia Clarke [Fri, 24 May 2024 06:05:00 +0000 (08:05 +0200)] 
patch 9.1.0442: hare runtime files outdated

Problem:  hare runtime files outdated
Solution: runtime(hare): update hare.vim to match upstream
          (Amelia Clarke)

closes: #14836

Signed-off-by: Amelia Clarke <selene@perilune.dev>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 days agopatch 9.1.0441: getregionpos() can't properly indicate positions beyond eol v9.1.0441
zeertzjq [Fri, 24 May 2024 05:48:51 +0000 (07:48 +0200)] 
patch 9.1.0441: getregionpos() can't properly indicate positions beyond eol

Problem:  getregionpos() can't properly indicate positions beyond eol.
Solution: Add an "eol" flag that enables handling positions beyond end
          of line like getpos() does (zeertzjq).

Also fix the problem that a position still has the coladd beyond the end
of the line when its column has been clamped.  In the last test case
with TABs at the end of the line the old behavior is obviously wrong.

I decided to gate this behind a flag because returning positions that
don't correspond to actual characters in the line may lead to mistakes
for callers that want to calculate the length of the selected text, so
the behavior is only enabled if the caller wants it.

closes: #14838

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 days agopatch 9.1.0440: function get_lval() is too long v9.1.0440
Yegappan Lakshmanan [Fri, 24 May 2024 05:44:10 +0000 (07:44 +0200)] 
patch 9.1.0440: function get_lval() is too long

Problem:  function get_lval() is too long
Solution: factor out the get_lval_subscript() function
          (Yegappan Lakshmanan)

closes: #14839

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 days agopatch 9.1.0439: Cannot filter the history v9.1.0439
Christian Brabandt [Fri, 24 May 2024 05:39:34 +0000 (07:39 +0200)] 
patch 9.1.0439: Cannot filter the history

Problem:  Cannot filter the history
Solution: Implement :filter :history

closes: #14835

Signed-off-by: Christian Brabandt <cb@256bit.org>
5 days agopatch 9.1.0438: Wrong Ex command executed when :g uses '?' as delimiter v9.1.0438
zeertzjq [Fri, 24 May 2024 05:37:36 +0000 (07:37 +0200)] 
patch 9.1.0438: Wrong Ex command executed when :g uses '?' as delimiter

Problem:  Wrong Ex command executed when :g uses '?' as delimiter and
          pattern contains escaped '?'.
Solution: Don't use "*newp" when it's not allocated (zeertzjq).

closes: #14837

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 days agoruntime(i3config/swayconfig): support floating_modifier none; revert broken highlighting
James Eapen [Thu, 23 May 2024 18:47:49 +0000 (20:47 +0200)] 
runtime(i3config/swayconfig): support floating_modifier none; revert broken highlighting

- fix floating_modifier $mod normal|inverse was being hightlighted as error
  reverting the floating_modifier change from dd83b63
- will currently allow invalid syntax after floating_modifier

fixes: #14826
closes: #14827

Co-authored-by: JosefLitos <litosjos@fit.cvut.cz>
Signed-off-by: James Eapen <james.eapen@vai.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 days agopatch 9.1.0437: Motif requires non-const char pointer for XPM data v9.1.0437
Drew Vogel [Thu, 23 May 2024 15:49:39 +0000 (17:49 +0200)] 
patch 9.1.0437: Motif requires non-const char pointer for XPM  data

Problem:  Motif requires non-const char pointer for XPM data shared with
          GTK (Tony Mechelynck, after v9.1.0432)
Solution: Cast non-const to const char pointer for GTK (Drew Vogel).

closes: #14834

Signed-off-by: Drew Vogel <dvogel@github>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 days agopatch 9.1.0436: Crash when using '?' as separator for :s v9.1.0436
zeertzjq [Thu, 23 May 2024 15:41:26 +0000 (17:41 +0200)] 
patch 9.1.0436: Crash when using '?' as separator for :s

Problem:  Crash when using '?' as separator for :s and pattern contains
          escaped '?'s (after 9.1.0409).
Solution: Always compute startplen. (zeertzjq).

related: neovim/neovim#28935
closes: 14832

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 days agopatch 9.1.0435: filetype: cygport files are not recognized v9.1.0435
K.Takata [Thu, 23 May 2024 15:31:26 +0000 (17:31 +0200)] 
patch 9.1.0435: filetype: cygport files are not recognized

Problem:  filetype: cygport files are not recognized
Solution: Recognize '*.cygport' files as sh filetype
          (Ken Takata)

https://cygwin.github.io/cygport/cygport_in.html

closes: #14833

Signed-off-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
5 days agopatch 9.1.0434: make errors trying to access autoload/zig v9.1.0434
Derek Schrock [Thu, 23 May 2024 15:26:51 +0000 (17:26 +0200)] 
patch 9.1.0434: make errors trying to access autoload/zig

Problem:  make errors trying to access autoload/zig
Solution: Remove autoload/zig from Makefile, adjust Filelist
          (Derek Schrock)

Commit d1d9316c6 removed autoload/zig/ files and install/uninstall target
of the Makefile fail since the directory doesn't exist any longer.

closes: #14828

Signed-off-by: Derek Schrock <dereks@lifeofadishwasher.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.1.0433: Wrong yanking with exclusive selection and ve=all v9.1.0433
zeertzjq [Thu, 23 May 2024 05:47:55 +0000 (07:47 +0200)] 
patch 9.1.0433: Wrong yanking with exclusive selection and ve=all

Problem:  Wrong yanking with exclusive selection and virtualedit=all,
          and integer overflow when using getregion() on it.
Solution: Set coladd when decreasing column and 'virtualedit' is active.
          Add more tests for getregion() with 'virtualedit' (zeertzjq).

closes: #14830

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agoruntime(comment): add missing help tags file
Christian Brabandt [Thu, 23 May 2024 05:24:05 +0000 (07:24 +0200)] 
runtime(comment): add missing help tags file

fixes: #14829

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.1.0432: Ancient XPM preprocessor hack may cause build errors v9.1.0432
Drew Vogel [Wed, 22 May 2024 14:51:53 +0000 (16:51 +0200)] 
patch 9.1.0432: Ancient XPM preprocessor hack may cause build errors

Problem:  Ancient XPM preprocessor hack may cause build errors.
Solution: Simplify XPM includes and get rid of complicated #ifdef magic
          (Drew Vogel).

closes: #14816

Signed-off-by: Drew Vogel <dvogel@github>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agoruntime(rescript): include basic rescript ftplugin file (#14822)
Riley Bruins [Wed, 22 May 2024 14:49:17 +0000 (07:49 -0700)] 
runtime(rescript): include basic rescript ftplugin file (#14822)

Reference: https://rescript-lang.org/docs/manual/latest/overview#comments

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.1.0431: eval.c is too long v9.1.0431
Yegappan Lakshmanan [Wed, 22 May 2024 14:45:04 +0000 (16:45 +0200)] 
patch 9.1.0431: eval.c is too long

Problem:  eval.c is too long
Solution: Move garbage collection code to new gc.c file
          (Yegappan Lakshmanan)

closes: #14824

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.1.0430: getregionpos() doesn't handle one char selection v9.1.0430
zeertzjq [Wed, 22 May 2024 14:42:44 +0000 (16:42 +0200)] 
patch 9.1.0430: getregionpos() doesn't handle one char selection

Problem:  getregionpos() doesn't handle one char selection.
Solution: Handle startspaces differently when is_oneChar is set.
          Also add a test for an exclusive charwise selection with
          multibyte chars (zeertzjq)

closes: #14825

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agoCI: disable -O2 for Coverity after v9.1.0429
Christian Brabandt [Wed, 22 May 2024 05:53:23 +0000 (07:53 +0200)] 
CI: disable -O2 for Coverity after v9.1.0429

gcc -O2 outputs this warning and turns it into an error when running
Coverity action:

```
eval.c: In function ‘echo_string_core’:
cc1: warning: function may return address of local variable [-Wreturn-local-addr]
eval.c:6495:12: note: declared here
 6495 |     char_u buf[MAX_FUNC_NAME_LEN];
      |            ^~~
```

This seems to be a false positive, so disable -O2 for Coverity
specifically.

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agoruntime(termdebug): check for gdb file/dir before using as buffer name
Ubaldo Tiberi [Tue, 21 May 2024 21:33:03 +0000 (23:33 +0200)] 
runtime(termdebug): check for gdb file/dir before using as buffer name

Add test so that this doesn't regress.

fixes: #12718
closes: #14792

Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@volvo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agoruntime(zig): refactor zig ftplugin, remove auto format
Tiseno [Tue, 21 May 2024 21:27:03 +0000 (23:27 +0200)] 
runtime(zig): refactor zig ftplugin, remove auto format

Refactored zig ftplugin, removed upstream comment, aucmd and
auto formatting support. Updated documentation for zig configuration
settings and added new maintainer.

closes: #13803

Signed-off-by: Tiseno <mathias.lindgren@stabelo.se>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agopatch 9.1.0429: Coverity complains about eval.c refactor v9.1.0429
Christian Brabandt [Tue, 21 May 2024 16:39:10 +0000 (18:39 +0200)] 
patch 9.1.0429: Coverity complains about eval.c refactor

Problem:  Coverity complains about eval.c refactor
          (after v9.1.0422)
Solution: Check that buf is not used un-initialized,
          add explicit conditions for save and restore
          of copyID

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agopatch 9.1.0428: Tag guessing leaves wrong search history with very short names v9.1.0428
zeertzjq [Tue, 21 May 2024 15:19:58 +0000 (17:19 +0200)] 
patch 9.1.0428: Tag guessing leaves wrong search history with very short names

Problem:  Tag guessing leaves wrong search history with very short names
          (after 9.1.0426).
Solution: Use the correct variable for pattern length (zeertzjq).

closes: #14817

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agopatch 9.1.0427: tests: some issues with termdebug mapping test v9.1.0427
Ken Takata [Tue, 21 May 2024 15:14:56 +0000 (17:14 +0200)] 
patch 9.1.0427: tests: some issues with termdebug mapping test

Problem:  tests: some issues with termdebug mapping test
Solution: Use assert_{true,false} if suitable, change
          order of expected and actual arguments in assert() calls.
          (Ken Takata)

closes: #14818
related: 7fbbd7f

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agoruntime(matchit): update matchit plugin to v1.20
Christian Brabandt [Mon, 20 May 2024 18:02:16 +0000 (20:02 +0200)] 
runtime(matchit): update matchit plugin to v1.20

fixes: #14814

Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agopatch 9.1.0426: too many strlen() calls in search.c v9.1.0426
John Marriott [Mon, 20 May 2024 17:18:26 +0000 (19:18 +0200)] 
patch 9.1.0426: too many strlen() calls in search.c

Problem:  too many strlen() calls in search.c
Solution: refactor code and remove more strlen() calls,
          use explicit variable to remember strlen
          (John Marriott)

closes: #14796

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agoruntime(verilog): set commentstring option
Riley Bruins [Mon, 20 May 2024 16:14:25 +0000 (18:14 +0200)] 
runtime(verilog): set commentstring option

closes: #14810

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agoruntime(vb): update vb indent plugin as vim9script
Michael Soyka [Mon, 20 May 2024 12:37:50 +0000 (14:37 +0200)] 
runtime(vb): update vb indent plugin as vim9script

Include an updated vb indent script using vim9script.
Also update the runtime indent test files

Signed-off-by: Michael Soyka <mssr953@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agopatch 9.1.0425: filetype: purescript files are not recognized v9.1.0425
Riley Bruins [Mon, 20 May 2024 12:21:53 +0000 (14:21 +0200)] 
patch 9.1.0425: filetype: purescript files are not recognized

Problem:  filetype: purescript files are not recognized
Solution: recognize '*.purs' files as purescript filetype,
          include basic purescript filetype plugin
          (Riley Bruins)

Reference: https://github.com/purescript/documentation/blob/master/language/Syntax.md#comments

closes: #14813

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agopatch 9.1.0424: filetype: slint files are not recognized v9.1.0424
Riley Bruins [Mon, 20 May 2024 12:20:09 +0000 (14:20 +0200)] 
patch 9.1.0424: filetype: slint files are not recognized

Problem:  filetype: slint files are not recognized
Solution: Detect '*.slint' files as slint filetype,
          include basic sling filetype plugin
          (Riley Bruins)

closes: #14808

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agoruntime(nim): basic nim ftplugin file for comments (#14812)
Riley Bruins [Mon, 20 May 2024 12:16:17 +0000 (05:16 -0700)] 
runtime(nim): basic nim ftplugin file for comments (#14812)

Reference: https://nim-by-example.github.io/comments/#:~:text=Comments%20in%20Nim%20begin%20with%20the%20hash%20character.&text=Multiline%20or%20block%20comments%20begin,line%20comments%20can%20be%20nested.

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agoruntime(arduino): Add Arduino ftplugin and indent files (#14811)
K.Takata [Mon, 20 May 2024 12:13:35 +0000 (21:13 +0900)] 
runtime(arduino): Add Arduino ftplugin and indent files (#14811)

We already have Arduino syntax file, but we didn't have ftplugin and
indent files.

This commit adds a basic ftplugin file and a basic indent file.
Both of them are derived from {ftplugin,indent}/c.vim.

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agoruntime(typst): include basic typst ftplugin file (#14809)
Riley Bruins [Mon, 20 May 2024 12:08:49 +0000 (05:08 -0700)] 
runtime(typst): include basic typst ftplugin file (#14809)

Reference: https://typst.app/docs/reference/syntax/#comments

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agoruntime(prisma): include basic prisma ftplugin file (#14807)
Riley Bruins [Mon, 20 May 2024 12:07:30 +0000 (05:07 -0700)] 
runtime(prisma): include basic prisma ftplugin file (#14807)

Reference: https://www.prisma.io/docs/orm/prisma-schema/overview#comments

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agoruntime(v): include basic v ftplugin for comment support (#14806)
Riley Bruins [Mon, 20 May 2024 12:03:46 +0000 (05:03 -0700)] 
runtime(v): include basic v ftplugin for comment support (#14806)

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agopatch 9.1.0423: getregionpos() wrong with blockwise mode and multibyte v9.1.0423
zeertzjq [Mon, 20 May 2024 12:00:31 +0000 (14:00 +0200)] 
patch 9.1.0423: getregionpos() wrong with blockwise mode and multibyte

Problem:  getregionpos() wrong with blockwise mode and multibyte.
Solution: Use textcol and textlen instead of start_vcol and end_vcol.
          Handle coladd properly (zeertzjq).

Also remove unnecessary buflist_findnr() in add_regionpos_range(), as
getregionpos() has already switched buffer.

closes: #14805

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agopatch 9.1.0422: function echo_string_core() is too long v9.1.0422
Yegappan Lakshmanan [Mon, 20 May 2024 11:57:11 +0000 (13:57 +0200)] 
patch 9.1.0422: function echo_string_core() is too long

Problem:  function echo_string_core() is too long
Solution: Refactor into several smaller functions
          (Yegappan Lakshmanan)

closes: #14804

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agopatch 9.1.0421: filetype: hyprlang files are not recognized v9.1.0421
Riley Bruins [Sun, 19 May 2024 09:26:44 +0000 (11:26 +0200)] 
patch 9.1.0421: filetype: hyprlang files are not recognized

Problem:  filetype: hyprlang files are not recognized
Solution: recognize 'hypr{land,paper,idle,lock}.conf' files
          as 'hyprlang' filetype, add hyprlang ftplugin
          (Riley Bruins)

closes: #14803

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 days agoruntime(dart): add basic dart ftplugin file
Riley Bruins [Sun, 19 May 2024 07:31:46 +0000 (09:31 +0200)] 
runtime(dart): add basic dart ftplugin file

fixes #14793
closes #14802

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 days agoruntime(graphql): basic ftplugin file for graphql
Riley Bruins [Sun, 19 May 2024 07:30:12 +0000 (09:30 +0200)] 
runtime(graphql): basic ftplugin file for graphql

closes: #14801

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 days agoruntime(doc): mention comment plugin at :h 'commentstring'
Christian Brabandt [Sun, 19 May 2024 07:28:26 +0000 (09:28 +0200)] 
runtime(doc): mention comment plugin at :h 'commentstring'

Signed-off-by: Christian Brabandt <cb@256bit.org>
10 days agoruntime(sql): set commentstring for sql files in ftplugin
Riley Bruins [Sun, 19 May 2024 07:23:10 +0000 (09:23 +0200)] 
runtime(sql): set commentstring for sql files in ftplugin

closes: #14800

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 days agopatch 9.1.0420: :browse oldfiles prompts even with single entry v9.1.0420
Christian Brabandt [Sun, 19 May 2024 07:11:09 +0000 (09:11 +0200)] 
patch 9.1.0420: :browse oldfiles prompts even with single entry

Problem:  :browse oldfiles prompts even with single entry
Solution: Do not prompt, but edit the file directly,
          also when using :filter /pat/ browse oldfiles

closes: #14794

Signed-off-by: Christian Brabandt <cb@256bit.org>
10 days agopatch 9.1.0419: eval.c not sufficiently tested v9.1.0419
Yegappan Lakshmanan [Sun, 19 May 2024 07:06:50 +0000 (09:06 +0200)] 
patch 9.1.0419: eval.c not sufficiently tested

Problem:  eval.c not sufficiently tested
Solution: Add a few more additional tests for eval.c,
          (Yegappan Lakshmanan)

closes: #14799

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 days agoruntime(doc): clarify why E195 is returned
Christian Brabandt [Sat, 18 May 2024 17:11:10 +0000 (19:11 +0200)] 
runtime(doc): clarify why E195 is returned

Signed-off-by: Christian Brabandt <cb@256bit.org>
10 days agoruntime(doc): clarify temporary file clean up
Christian Brabandt [Sat, 18 May 2024 08:13:11 +0000 (10:13 +0200)] 
runtime(doc): clarify temporary file clean up

related: #14770

Co-authored-by: Enno <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 days agoruntime(matchparen): fix :NoMatchParen not working (#14797)
zeertzjq [Sat, 18 May 2024 06:55:49 +0000 (14:55 +0800)] 
runtime(matchparen): fix :NoMatchParen not working (#14797)

fixes: neovim/neovim#28828

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 days agopatch 9.1.0418: Cannot move to previous/next rare word v9.1.0418
Christ van Willegen - van Noort [Fri, 17 May 2024 16:49:27 +0000 (18:49 +0200)] 
patch 9.1.0418: Cannot move to previous/next rare word

Problem:  Cannot move to previous/next rare word
          (Colin Kennedy)
Solution: Add the ]r and [r motions (Christ van Willegen)

fixes: #14773
closes: #14780

Signed-off-by: Christ van Willegen - van Noort <github.com@vanwillegen-vannoort.nl>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 days agoruntime(sshdconfig): add basic ftplugin file for sshdconfig (#14790)
Yinzuo Jiang [Fri, 17 May 2024 16:39:24 +0000 (00:39 +0800)] 
runtime(sshdconfig): add basic ftplugin file for sshdconfig (#14790)

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 days agopatch 9.1.0417: if_py: find_module has been removed in Python 3.12.0a7 v9.1.0417
Christian Brabandt [Fri, 17 May 2024 16:30:01 +0000 (18:30 +0200)] 
patch 9.1.0417: if_py: find_module has been removed in Python 3.12.0a7

Problem:  if_py: find_module has been removed in Python 3.12.0a7
          (@Ghost-LZW)
Solution: Do not include find_module for Python >= 3.12.0a7

fixes: #14776
closes: #14781

Signed-off-by: Christian Brabandt <cb@256bit.org>
11 days agopatch 9.1.0416: some screen dump tests can be improved v9.1.0416
Luuk van Baal [Fri, 17 May 2024 16:25:13 +0000 (18:25 +0200)] 
patch 9.1.0416: some screen dump tests can be improved

Problem:  some screen dump tests can be improved (after 9.1.0414)
Solution: Make sure screen state changes properly and is captured in the
          screen dumps (Luuk van Baal)

closes: #14788

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 days agopatch 9.1.0415: Some functions are not tested v9.1.0415
Yegappan Lakshmanan [Fri, 17 May 2024 16:20:43 +0000 (18:20 +0200)] 
patch 9.1.0415: Some functions are not tested

Problem:  Some functions are not tested
Solution: Add a few more tests, fix a few minor problems
          (Yegappan Lakshmanan)

closes: #14789

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
11 days agoruntime(doc): clarify instal instructions for comment package
Christian Brabandt [Fri, 17 May 2024 15:29:37 +0000 (17:29 +0200)] 
runtime(doc): clarify instal instructions for comment package

Signed-off-by: Christian Brabandt <cb@256bit.org>
12 days agopatch 9.1.0414: Unable to leave long line with 'smoothscroll' and 'scrolloff' v9.1.0414
Luuk van Baal [Thu, 16 May 2024 18:44:09 +0000 (20:44 +0200)] 
patch 9.1.0414: Unable to leave long line with 'smoothscroll' and 'scrolloff'

Problem:  Unable to leave long line with 'smoothscroll' and 'scrolloff'.
          Corrupted screen near the end of a long line with 'scrolloff'.
          (Ernie Rael, after 9.1.0280)
Solution: Only correct cursor in case scroll_cursor_bot() was not itself
          called to make the cursor visible. Avoid adjusting for
          'scrolloff' beyond the text line height (Luuk van Baal)

fixes: #14726
closes: #14783

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
12 days agoruntime(doc): fix typo in vim9script help file (#14782)
jbm950 [Thu, 16 May 2024 17:53:39 +0000 (13:53 -0400)] 
runtime(doc): fix typo in vim9script help file (#14782)

This commit fixes a typo in the first example of the vim9script help
file. Trying to execute the given example before resulted in a "trailing
characters" error.

Signed-off-by: jbm950 <jmilam343@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 days agoruntime(doc): Remove trailing spaces (#14784)
K.Takata [Thu, 16 May 2024 03:39:01 +0000 (12:39 +0900)] 
runtime(doc): Remove trailing spaces (#14784)

Fix the issues introduced by #14770.

13 days agoruntime(doc): clarify {special} argument for shellescape()
Enno [Wed, 15 May 2024 19:54:19 +0000 (21:54 +0200)] 
runtime(doc): clarify {special} argument for shellescape()

closes: #14770

Signed-off-by: Enno <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 days agoCI: Upload failed screendump tests when run in github actions
Christian Brabandt [Wed, 15 May 2024 19:48:11 +0000 (21:48 +0200)] 
CI: Upload failed screendump tests when run in github actions

It's a bit of a pain to debug failing screendump tests without knowing
exactly what went wrong. Therefore include actions/upload-artifact for
the Github CI runners and have them uploaded those failing screen dump
tests automatically.

Let's add this step to each of the Linux/MacOS/Windows workflows but do
not duplicate the code, factor it out to a single file
.github/actions/screendump/action.yml and reference this one from the
main ci.yml file

Example:
https://github.com/chrisbra/vim/actions/runs/9085493619

closes: #14771

Co-authored-by: dundargoc <gocdundar@gmail.com>
Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 days agopatch 9.1.0413: smoothscroll may cause infinite loop v9.1.0413
Christian Brabandt [Wed, 15 May 2024 19:35:36 +0000 (21:35 +0200)] 
patch 9.1.0413: smoothscroll may cause infinite loop

Problem:  smoothscroll may cause infinite loop, with
          very narrow windows
          (Jaehwang Jung, after v9.1.0280)
Solution: Check for width1 being negative, verify
          that win_linetabsize does not overflow

fixes: #14750
closes: #14772

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 days agoruntime(doc): add missing entries for the keys CTRL-W g<Tab> and <C-Tab>
Christian Brabandt [Wed, 15 May 2024 19:04:33 +0000 (21:04 +0200)] 
runtime(doc): add missing entries for the keys CTRL-W g<Tab> and <C-Tab>

fixes: #14777
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 days agoruntime(doc): update vi_diff.txt: add default value for 'flash'
Cthulhux [Wed, 15 May 2024 18:53:52 +0000 (20:53 +0200)] 
runtime(doc): update vi_diff.txt: add default value for 'flash'

The "flash" option was added relatively late and seems to be exclusive
to System V. (It's not in 4.4BSD and it's not in V8 UNIX, checked [on
TUHS](https://www.tuhs.org/cgi-bin/utree.pl).) The oldest occurrence of
`flash` in "a vi" I could find is in SysV R2 for the VAX, where it
[defaults to
1](https://github.com/ryanwoodsmall/oldsysv/blob/master/sysvr2-vax/src/cmd/vi/vax/ex_data.c)
= on.

closes: #14778

Signed-off-by: Cthulhux <github@tuxproject.de>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0412: typo in regexp_bt.c in DEBUG code v9.1.0412
Christian Brabandt [Tue, 14 May 2024 09:19:47 +0000 (11:19 +0200)] 
patch 9.1.0412: typo in regexp_bt.c in DEBUG code

Problem:  typo in regexp_bt.c in DEBUG code, causing
          compile error (@kfleong7, after v9.1.0409)
Solution: Replace bulen by buflen

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agoruntime(i3config/swayconfig): allow indented commands (#14757)
Josef Litoš [Mon, 13 May 2024 20:03:42 +0000 (22:03 +0200)] 
runtime(i3config/swayconfig): allow indented commands (#14757)

fixes: #14752

Co-authored-by: jamespeapen <jamespeapen@users.noreply.github.com>
Signed-off-by: Josef Litoš <54900518+JosefLitos@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agoruntime(python): Fix wrong define regex in ftplugin (#14763)
Tom Picton [Mon, 13 May 2024 20:00:40 +0000 (16:00 -0400)] 
runtime(python): Fix wrong define regex in ftplugin (#14763)

Signed-off-by: Tom Picton <tom@tompicton.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agoruntime(syntax-tests): Filter out non-Latin-1 characters for syntax tests (#14767)
Aliaksei Budavei [Mon, 13 May 2024 19:06:05 +0000 (22:06 +0300)] 
runtime(syntax-tests): Filter out non-Latin-1 characters for syntax tests (#14767)

Syntax tests are run with the LC_ALL=C environment variable
passed to "make".  Occasionally, there are CI failures for
such test files containing non-Latin-1 characters with error
messages pointing to multi-byte characters:

https://github.com/vim/vim/actions/runs/8824925004/job/24228298023#step:10:16370 ,
https://github.com/vim/vim/actions/runs/8840856619/job/24276935260#step:10:16347 ,
https://github.com/vim/vim/actions/runs/8854043458/job/24316210645#step:10:16362 ,
https://github.com/vim/vim/actions/runs/8856501136/job/24322848765#step:10:16354 ,
https://github.com/vim/vim/actions/runs/9038417238/job/24839482152#step:11:16980 .

But since the very same unchanged tests pass at other times:

https://github.com/vim/vim/actions/runs/8827593571/job/24235935458#step:10:16353 ,
https://github.com/vim/vim/actions/runs/9065214647/job/24905321661#step:11:17002 ;

these failures are unrelated to the nature of syntax tests
and should be considered false positives.

As a temporary workaround, all bytes of known non-Latin-1
characters can be replaced in memory with an arbitrary ASCII
byte (?) by applying a filter

> " To ignore part of the dump, provide a "dumps/{filename}.vim" file with
> " Vim commands to be applied to both the reference and the current dump, so
> " that parts that are irrelevant are not used for the comparison.  The result
> " is NOT written, thus "term_dumpdiff()" shows the difference anyway.

before lines are compared between files.

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agoruntime(netrw): prefer scp over pscp
Christian Brabandt [Mon, 13 May 2024 18:56:43 +0000 (20:56 +0200)] 
runtime(netrw): prefer scp over pscp

regression introduced in ce2ad9ffd79fe6b2307cd46b9

The current logic is a bit funny, in that it checks for an executable of
scp, then pscp and if neither exists, it uses: scp :/
Anyway, let's fall back to the logic used before the above commit.

related: #14739

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agoruntime(doc): fix typo in usr_52.txt
Christian Brabandt [Sun, 12 May 2024 17:04:47 +0000 (19:04 +0200)] 
runtime(doc): fix typo in usr_52.txt

fixes: #14758

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0411: too long functions in eval.c v9.1.0411
Yegappan Lakshmanan [Sun, 12 May 2024 07:24:35 +0000 (09:24 +0200)] 
patch 9.1.0411: too long functions in eval.c

Problem:  too long functions in eval.c
Solution: refactor functions (Yegappan Lakshmanan)

closes: #14755

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0410: warning about uninitialized variable v9.1.0410
John Marriott [Sun, 12 May 2024 07:01:38 +0000 (09:01 +0200)] 
patch 9.1.0410: warning about uninitialized variable

Problem:  warning about uninitialized variable
          (Tony Mechelynck, after 9.1.0409)
Solution: initialize variable (John Marriott)

closes: #14754

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0409: too many strlen() calls in the regexp engine v9.1.0409
John Marriott [Sat, 11 May 2024 22:07:17 +0000 (00:07 +0200)] 
patch 9.1.0409: too many strlen() calls in the regexp engine

Problem:  too many strlen() calls in the regexp engine
Solution: refactor code to retrieve strlen differently, make use
          of bsearch() for getting the character class
          (John Marriott)

closes: #14648

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agoftplugin(python): E16 fix, async keyword support for define (#14751)
Tom Picton [Sat, 11 May 2024 18:26:06 +0000 (14:26 -0400)] 
ftplugin(python): E16 fix, async keyword support for define (#14751)

This change includes the following changes:
- Fix "E16: Invalid range" when using a count with jump to start/end of class/method
- Update define with optional async keyword
- Update maintainer email

Signed-off-by: Tom Picton <tom@tompicton.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0408: configure fails on Fedora when including perl v9.1.0408
Christian Brabandt [Sat, 11 May 2024 18:18:21 +0000 (20:18 +0200)] 
patch 9.1.0408: configure fails on Fedora when including perl

Problem:  configure fails on Fedora when including perl
          (chesheer-smile)
Solution: Filter out -spec=<path> from $LIBS and $LDFLAGS to avoid
          linking relocation errors for unrelated autoconf tests.

closes: #14526

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0407: Stuck with long line and half-page scrolling v9.1.0407
Luuk van Baal [Sat, 11 May 2024 09:27:52 +0000 (11:27 +0200)] 
patch 9.1.0407: Stuck with long line and half-page scrolling

Problem:  No scrolling happens with half-page scrolling with line
          filling entire window when 'smoothscroll' is disabled.
          (Mathias Rav, after v9.1.0285)
Solution: Adjust amount to move cursor by so that it is moved the same
          number of lines as was scrolled, even when scrolling different
          number of lines than requested with 'nosmoothscroll'.

fixes: #14743
closes: #14746

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0406: Divide by zero with getmousepos() and 'smoothscroll' v9.1.0406
zeertzjq [Sat, 11 May 2024 09:23:37 +0000 (11:23 +0200)] 
patch 9.1.0406: Divide by zero with getmousepos() and 'smoothscroll'

Problem:  Divide by zero with getmousepos() and 'smoothscroll'.
Solution: Don't compute skip_lines when width1 is zero.
          (zeertzjq)

closes: #14747

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agoruntime(doc): update and remove some invalid links
Christian Brabandt [Sat, 11 May 2024 09:12:40 +0000 (11:12 +0200)] 
runtime(doc): update and remove  some invalid links

closes: #14748

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agotranslation(it): update translation of xxd manpage
Antonio Giovanni Colombo [Fri, 10 May 2024 21:51:30 +0000 (23:51 +0200)] 
translation(it): update translation of xxd manpage

Signed-off-by: Antonio Giovanni Colombo <azc100@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agoruntime(netrw): Recursively delete directories by default with netrw delete command
Nir Lichtman [Fri, 10 May 2024 21:43:29 +0000 (23:43 +0200)] 
runtime(netrw): Recursively delete directories by default with netrw delete command

closes: #14742

Signed-off-by: Nir Lichtman <nir@lichtman.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agoruntime(java): Strive to remain compatible for at least Vim 7.0 (#14744)
Aliaksei Budavei [Fri, 10 May 2024 21:39:31 +0000 (00:39 +0300)] 
runtime(java): Strive to remain compatible for at least Vim 7.0 (#14744)

Also:

- Limit all look-behind regexp patterns.
- Cache regexp capabilities for [:upper:] and [:lower:].

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0405: tests: xxd buffer overflow fails on 32-bit v9.1.0405
Christian Brabandt [Fri, 10 May 2024 18:00:33 +0000 (20:00 +0200)] 
patch 9.1.0405: tests: xxd buffer overflow fails on 32-bit

Problem:  tests: xxd buffer overflow fails on 32-bit
Solution: Skip test on 32-bit architecture

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agoruntime(java): Stop handpicking syntax groups for @javaTop (#14727)
Aliaksei Budavei [Fri, 10 May 2024 12:49:06 +0000 (15:49 +0300)] 
runtime(java): Stop handpicking syntax groups for @javaTop (#14727)

* runtime(java): Stop handpicking syntax groups for @javaTop

Also:

- Remove the obsolete comment for g:java_allow_cpp_keywords.
- Remove the commented out groups java\%[Debug\]StringError.
- Infer and set the preferred formatting Vim options from
  the modeline.

Since vim-6-0u, non-contained syntax groups can be referred
to by using the "contains=TOP..." argument.

* Set &encoding and &termencoding to "utf-8" for test files

* Limit non-ASCII charset to [§ƒɐɘʬʭΑ-Τα-μ] for test files

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0404: [security] xxd: buffer-overflow with specific flags v9.1.0404
Lennard Hofmann [Fri, 10 May 2024 12:17:26 +0000 (14:17 +0200)] 
patch 9.1.0404: [security] xxd: buffer-overflow with specific flags

Problem:  [security] xxd: buffer-overflow with specific flags
Solution: Correctly calculate the required buffer space
          (Lennard Hofmann)

xxd writes each output line into a global buffer before printing.
The maximum size of that buffer was not calculated correctly.

This command was crashing in AddressSanitizer:
$ xxd -Ralways -g1 -c256 -d -o 9223372036854775808 /etc/passwd

This prints a line of 6680 bytes but the buffer only had room for 6549 bytes.
If the output from "-b" was colored, the line could be even longer.

closes: #14738

Co-authored-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Lennard Hofmann <lennard.hofmann@web.de>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0403: Vim9: not able to import file from start dir v9.1.0403
Yegappan Lakshmanan [Fri, 10 May 2024 11:10:54 +0000 (13:10 +0200)] 
patch 9.1.0403: Vim9: not able to import file from start dir

Problem:  Vim9: not able to import file from start dir
          (Danielle McLean)
Solution: Allow to import from start directory
          (Yegappan Lakshmanan)

fixes: #13313
closes: #14740

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0402: filetype: mdd files detected as zsh filetype v9.1.0402
Wu, Zhenyu [Fri, 10 May 2024 10:11:56 +0000 (12:11 +0200)] 
patch 9.1.0402: filetype: mdd files detected as zsh filetype

Problem:  filetype: mdd files detected as zsh filetype
Solution: detect '*.mdd' files as sh filetype, add links
          to reference documentation (Wu, Zhenyu)

closes: #14741

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0401: filetype: zsh module files are not recognized v9.1.0401
Wu, Zhenyu [Thu, 9 May 2024 18:35:13 +0000 (20:35 +0200)] 
patch 9.1.0401: filetype: zsh module files are not recognized

Problem:  filetype: zsh module files are not recognized
Solution: Detect '*.mdh' and '*.epro' as C filetype, '*.mdd' as zsh
          filetype, determine zsh-modules '*.pro' from from it's content
          (Wu, Zhenyu)

closes: #14737

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agoruntime(netrw): Remove hardcoded private.ppk logic from netrw
Nir Lichtman [Thu, 9 May 2024 18:20:36 +0000 (20:20 +0200)] 
runtime(netrw): Remove hardcoded private.ppk logic from netrw

closes: #14739

Signed-off-by: Nir Lichtman <nir@lichtman.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0400: Vim9: confusing error message for unknown type v9.1.0400
Yegappan Lakshmanan [Thu, 9 May 2024 07:12:31 +0000 (09:12 +0200)] 
patch 9.1.0400: Vim9: confusing error message for unknown type

Problem:  Vim9: confusing error message for unknown type
          (Doug Kearns)
Solution: For an unknown type, display only the type name in the error
          message (Yegappan Lakshmanan)

fixes: #13153
closes: #14736

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 weeks agopatch 9.1.0399: block_editing errors out when using del v9.1.0399
Christian Brabandt [Wed, 8 May 2024 20:17:19 +0000 (22:17 +0200)] 
patch 9.1.0399: block_editing errors out when using del

Problem:  block_editing errors out when using del
          (@Jamarley)
Solution: Change ins_len from size_t to int and
          properly check that it doesn't become negative

There is a check in os.c that verifies that `ins_len` does not become
negative:
```
if (pre_textlen >= 0 && (ins_len = len - pre_textlen - offset) > 0)
```
However this only works, if ins_len can actually become negative and
unfortunately, ins_len has been declared as `size_t` so instead of
becoming negative it will wrap around and be very large.

So let's define it as integer, after which the condition above
properly catches this condition.

fixes: #14734
closes: #14735

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