]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
16 months agopatch 9.1.0256: Finding autocmd events is inefficient v9.1.0256
John Marriott [Tue, 2 Apr 2024 18:26:01 +0000 (20:26 +0200)] 
patch 9.1.0256: Finding autocmd events is inefficient

Problem:  Finding autocmd events is inefficient
Solution: Use binary search to find events, cache last found events,
          avoid use of strlen(), add SessionWritePost autocmd,
          fix test_codestyle and avoid endless loop
          (John Marriott)

closes: #14287

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0255: Vim9: no indication of script nr in stack trace of classes v9.1.0255
Ernie Rael [Tue, 2 Apr 2024 17:05:39 +0000 (19:05 +0200)] 
patch 9.1.0255: Vim9: no indication of script nr in stack trace of classes

Problem:  Vim9: no indication of script nr in stack trace of classes
Solution: Prefix the class name with the script name in the stack trace.
          (Ernie Rael)

fixes: #14376
closes: #14390

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0254: [security]: Heap buffer overflow when calling complete_add() in ... v9.1.0254
zeertzjq [Tue, 2 Apr 2024 17:01:14 +0000 (19:01 +0200)] 
patch 9.1.0254: [security]: Heap buffer overflow when calling complete_add() in 'cfu'

Problem:  [security]: Heap buffer overflow when calling complete_add()
          in the first call of 'completefunc'
Solution: Call check_cursor() after calling 'completefunc' (zeertzjq)

closes: #14391

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0253: filetype: typespec files are not recognized v9.1.0253
Hilmar Wiegand [Tue, 2 Apr 2024 16:54:54 +0000 (18:54 +0200)] 
patch 9.1.0253: filetype: typespec files are not recognized

Problem:  filetype: typespec files are not recognized
Solution: Detect '*.tsp' files as typespec
          (Hilmar Wiegand)

Specs is at https://typespec.io/

closes: #14392

Signed-off-by: Hilmar Wiegand <me@hwgnd.de>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(yaml): improve syntax highlighting for YAML
itchyny [Mon, 1 Apr 2024 12:54:36 +0000 (14:54 +0200)] 
runtime(yaml): improve syntax highlighting for YAML

- Recognize block scalar style to avoid unexpected highlighting by `yamlFlowString` (fix #11517)
- Improve performance of `yamlFlowMappingKey` by allowing execution by the NFA engine (fix #10730)
  - It was intentionally disabled before patterns were optimized by `s:SimplifyToAssumeAllPrintable`.
- Fix detection of flow style mapping indicators (fix #8234).
- Enable highlighting of explicit mapping value indicators and node properties in flow style.
- Add syntax highlighting tests

closes: #14354

Signed-off-by: itchyny <itchyny@cybozu.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0252: Vim9: segfault with static in super class v9.1.0252
Yegappan Lakshmanan [Mon, 1 Apr 2024 12:50:41 +0000 (14:50 +0200)] 
patch 9.1.0252: Vim9: segfault with static in super class

Problem:  Vim9: segfault with static in super class
          (Ernie Rael)
Solution: When initializing lhs, use the correct class where a class
          variable is defined (Yegappan Lakshmanan)

fixes: #14352
closes: #14372

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0251: Filetype test fails v9.1.0251
zeertzjq [Mon, 1 Apr 2024 12:46:20 +0000 (14:46 +0200)] 
patch 9.1.0251: Filetype test fails

Problem:  Filetype test fails.
Solution: Move detection by name before detection by extension.
          Improve TextChanged test and remove wrong test and fix
          a typo in a comment (zeertzjq).

closes: #14373

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(sshconfig,sshdconfig): update syntax (#14351)
Eisuke Kawashima [Sun, 31 Mar 2024 20:02:31 +0000 (05:02 +0900)] 
runtime(sshconfig,sshdconfig): update syntax (#14351)

* fix case insensitivity of Host and Hostname keys
* improve regexps
* add keywords

Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0250: filetype: ldscripts cannot be recognized v9.1.0250
Wu, Zhenyu [Sun, 31 Mar 2024 17:57:16 +0000 (19:57 +0200)] 
patch 9.1.0250: filetype: ldscripts cannot be recognized

Problem:  filetype: ldscripts cannot be recognized
Solution: Detect '*/ldscripts/*' as ld
          (Wu, Zhenyu)

closes: #14371

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0249: filetype: rock_manifest and config.ld files are not recognized v9.1.0249
Wu, Zhenyu [Sun, 31 Mar 2024 17:54:12 +0000 (19:54 +0200)] 
patch 9.1.0249: filetype: rock_manifest and config.ld files are not recognized

Problem:  filetype: rock_manifest and config.ld files are not recognized
Solution: Detect 'rock_manifest' and 'config.ld' as lua
          (Wu, Zhenyu)

closes: #14370

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0248: filetype: yarn lock files are not recognized v9.1.0248
Wu, Zhenyu [Sun, 31 Mar 2024 17:51:19 +0000 (19:51 +0200)] 
patch 9.1.0248: filetype: yarn lock files are not recognized

Problem:  filetype: yarn lock files are not recognized
Solution: Detect 'yarn.lock' files as yaml
          (Wu, Zhenyu)

closes: #14369

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0247: filetype: bundle config files are not recognized v9.1.0247
Wu, Zhenyu [Sun, 31 Mar 2024 17:48:35 +0000 (19:48 +0200)] 
patch 9.1.0247: filetype: bundle config files are not recognized

Problem:  filetype: bundle config files are not recognized
Solution: Detect '*/.bundle/config' as yaml
          (Wu, Zhenyu)

closes: #14368

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0246: filetype: fontconfig files are not recognized v9.1.0246
Wu, Zhenyu [Sun, 31 Mar 2024 17:45:11 +0000 (19:45 +0200)] 
patch 9.1.0246: filetype: fontconfig files are not recognized

Problem:  filetype: fontconfig files are not recognized
Solution: detect 'fonts.conf' as xml
          (Wu, Zhenyu)

closes: #14367

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0245: filetype: zsh theme, history and zunit files are not recognized v9.1.0245
Wu, Zhenyu [Sun, 31 Mar 2024 17:42:39 +0000 (19:42 +0200)] 
patch 9.1.0245: filetype: zsh theme, history and zunit files are not recognized

Problem:  filetype: zsh theme, history and zunit files are not
          recognized.
Solution: Detect '.zsh_history', '*.zsh-theme' and '*.zunit' as zsh
          (Wu, Zhenyu)

closes: #14366

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0244: filetype: bash history files are not recognized v9.1.0244
Wu, Zhenyu [Sun, 31 Mar 2024 17:22:51 +0000 (19:22 +0200)] 
patch 9.1.0244: filetype: bash history files are not recognized

Problem:  filetype: bash history files are not recognized
Solution: detect .bash-history and .bash_history files as bash
          (Wu, Zhenyu)

closes: #14365

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0243: filetype: netrw history file is not recognized v9.1.0243
Wu, Zhenyu [Sun, 31 Mar 2024 17:20:14 +0000 (19:20 +0200)] 
patch 9.1.0243: filetype: netrw history file is not recognized

Problem:  filetype: netrw history file is not recognized
Solution: Detect .netrwhist as vim files (Wu, Zhenyu)

closes: #14364

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0242: filetype: octave history files are not recognized v9.1.0242
Wu, Zhenyu [Sun, 31 Mar 2024 17:18:10 +0000 (19:18 +0200)] 
patch 9.1.0242: filetype: octave history files are not recognized

Problem:  filetype: octave history files are not recognized
Solution: Detect octave/history files as octave
          (Wu, Zhenyu)

closes: #14363

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0241: filetype: mysql history files are not recognized v9.1.0241
Wu, Zhenyu [Sun, 31 Mar 2024 17:15:49 +0000 (19:15 +0200)] 
patch 9.1.0241: filetype: mysql history files are not recognized

Problem:  filetype: mysql history files are not recognized
Solution: Detect .mysql_history as mysql
          (Wu, Zhenyu)

closes: #14362

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0240: filetype: some python tools config files are not recognized v9.1.0240
Wu, Zhenyu [Sun, 31 Mar 2024 17:12:36 +0000 (19:12 +0200)] 
patch 9.1.0240: filetype: some python tools config files are not recognized

Problem:  filetype: some python tools config files are not recognized
Solution: Detect config files for setuptools, pudb, coverage as dosini
          (Wu, Zhenyu)

closes: #14361

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0239: filetype: gnuplot history files are not recognised v9.1.0239
Wu, Zhenyu [Sun, 31 Mar 2024 17:10:18 +0000 (19:10 +0200)] 
patch 9.1.0239: filetype: gnuplot history files are not recognised

Problem:  filetype: gnuplot history files are not recognised
Solution: detect .gnuplot_history files as gnuplot
          (Wu, Zhenyu)

closes: #14360

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0238: filetype: jupyterlab and sublime config are not recognized v9.1.0238
Wu, Zhenyu [Sun, 31 Mar 2024 17:08:07 +0000 (19:08 +0200)] 
patch 9.1.0238: filetype: jupyterlab and sublime config are not recognized

Problem:  filetype: jupyterlab and sublime config are not recognized
Solution: Detect jupyterlab and sublime config files as json
          (Wu, Zhenyu)

closes: #14359

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0237: filetype: mplstyle files are not recognized v9.1.0237
Wu, Zhenyu [Sun, 31 Mar 2024 17:05:44 +0000 (19:05 +0200)] 
patch 9.1.0237: filetype: mplstyle files are not recognized

Problem:  filetype: mplstyle files are not recognized
Solution: Detect '*.mplstyle' files as yaml (Wu, Zhenyu)

closes: #14358

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0236: filetype: texlua files are not recognized v9.1.0236
Wu, Zhenyu [Sun, 31 Mar 2024 17:02:26 +0000 (19:02 +0200)] 
patch 9.1.0236: filetype: texlua files are not recognized

Problem:  filetype: texlua files are not recognized
Solution: Add '*.tlu' pattern for texlua files (Wu, Zhenyu)

Reference: https://github.com/TeX-Live/texdoc/tree/master/script

closes: #14357

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0235: filetype: supertux files are not recognized v9.1.0235
Wu, Zhenyu [Sun, 31 Mar 2024 16:58:34 +0000 (18:58 +0200)] 
patch 9.1.0235: filetype: supertux files are not recognized

Problem:  filetype: supertux files are not recognized
Solution: Supertux uses lisp to store hotkeys in config and game stage information,
          so add a pattern for supertux files.
          (Wu, Zhenyu)

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

closes: #14356

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0234: filetype: support for Intel HEX files is lacking v9.1.0234
Wu, Zhenyu [Sun, 31 Mar 2024 16:54:55 +0000 (18:54 +0200)] 
patch 9.1.0234: filetype: support for Intel HEX files is lacking

Problem:  filetype: support for Intel HEX files is lacking
Solution: Add more file extensions that are typical for Intel HEX files
          (Wu, Zhenyu)

Reference: https://en.wikipedia.org/wiki/Intel_HEX

closes: #14355

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0233: Vim9: string() output of enum is problematic v9.1.0233
Yegappan Lakshmanan [Sun, 31 Mar 2024 16:45:35 +0000 (18:45 +0200)] 
patch 9.1.0233: Vim9: string() output of enum is problematic

Problem:  Vim9: string() output of enum is problematic
Solution: Make string() output for an enum consistent with that of a
          regular object (Yegappan Lakshmanan).

closes: #14343

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0232: Conceal test fails when rightleft feature is disabled v9.1.0232
Julio B [Sun, 31 Mar 2024 16:43:51 +0000 (18:43 +0200)] 
patch 9.1.0232: Conceal test fails when rightleft feature is disabled

Problem:  Conceal test fails when rightleft feature is disabled.
Solution: Skip test if rightleft feature is missing (Julio B).

closes: #14342

Signed-off-by: Julio B <julio.bacel@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0231: Filetype may be undetected when SwapExists sets ft in other buf v9.1.0231
zeertzjq [Sun, 31 Mar 2024 16:41:27 +0000 (18:41 +0200)] 
patch 9.1.0231: Filetype may be undetected when SwapExists sets ft in other buf

Problem:  Filetype may be undetected when a SwapExists autocommand sets
          filetype in another buffer.
Solution: Make filetype detection state buffer-specific.  Also fix a
          similar problem for 'modified' (zeertzjq).

closes: #14344

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0230: TextChanged autocommand not triggered under some circumstances v9.1.0230
Christian Brabandt [Sun, 31 Mar 2024 16:38:09 +0000 (18:38 +0200)] 
patch 9.1.0230: TextChanged autocommand not triggered under some circumstances

Problem:  TextChanged autocommand not triggered under some circumstances
          (Sergey Vlasov)
Solution: Trigger TextChanged when TextChangedI has not been triggered

fixes: #14332
closes: #14339

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(compilers): ensure compiler! sets global options (#14336)
Enno [Sun, 31 Mar 2024 16:37:05 +0000 (18:37 +0200)] 
runtime(compilers): ensure compiler! sets global options (#14336)

Previously some options were only set locally by
&l:makeprg/errorformat

This suffices for :compiler (without a trailing bang)
but falls short for :compiler! that sets &g:makeprg/errorformat as
well

Also apply kind suggestions by @dkearns and @lifepillar

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(vim): Distinguish Vim9 builtin object methods from namesake builtin functions...
Aliaksei Budavei [Sun, 31 Mar 2024 16:26:32 +0000 (19:26 +0300)] 
runtime(vim): Distinguish Vim9 builtin object methods from namesake builtin functions (#14348)

Currently, the overriding object method definitions are
matched as vimFunctionError (:help builtin-object-methods,
v9.1.0148).

For example:
------------------------------------------------------------
vim9script

class Test
def string(): string
return "Test"
enddef
endclass

echo string(Test.new()) == Test.new().string()
------------------------------------------------------------

Instead, let's introduce a new syntax group vimMethodName
and make these methods its members.  In order to emphasise
the link between the overriding methods and the overridden
functions for highlighting, vimMethodName is linked by
default to vimFuncName.

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(pamconf): add support for Debian specific @includes
Christian Brabandt [Sun, 31 Mar 2024 16:04:21 +0000 (18:04 +0200)] 
runtime(pamconf): add support for Debian specific @includes

fixes: #14335

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0229: Error E877 is not translated v9.1.0229
Christian Brabandt [Sun, 31 Mar 2024 15:52:56 +0000 (17:52 +0200)] 
patch 9.1.0229: Error E877 is not translated

Problem:  Error E877 is not translated (RestorerZ)
Solution: Declare the error with N_ to mark it as translatable, add _()
          around the error message in regexp_nfa.c

fixes: #14333

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoNSIS: fix path of uganda.nsis.txt in german.nsi file (#14331)
Restorer [Fri, 29 Mar 2024 17:40:02 +0000 (17:40 +0000)] 
NSIS: fix path of uganda.nsis.txt in german.nsi file (#14331)

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0228: Two unrelated things are tested by a single test v9.1.0228
zeertzjq [Fri, 29 Mar 2024 09:23:19 +0000 (10:23 +0100)] 
patch 9.1.0228: Two unrelated things are tested by a single test

Problem:  Two unrelated things are tested by a single test.
Solution: Split it into two, restoring the old Test_brace_single_line().
          Add missing cleanup to some tests.
          (zeertzjq)

closes: #14323

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(doc): Improve docs for empty(), len(), and string() on objects
mityu [Fri, 29 Mar 2024 09:14:41 +0000 (10:14 +0100)] 
runtime(doc): Improve docs for empty(), len(), and string() on objects

closes: #14324

Signed-off-by: mityu <mityu.mail@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0227: Recording may still be wrong in Select mode v9.1.0227
zeertzjq [Fri, 29 Mar 2024 09:11:42 +0000 (10:11 +0100)] 
patch 9.1.0227: Recording may still be wrong in Select mode

Problem:  Recording may still be wrong in Select mode (after 8.2.3993).
Solution: Make sure a character isn't split between two buffer blocks.
          (zeertzjq)

closes: #14326

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0226: Not able to assign enum values to an enum static variable v9.1.0226
Yegappan Lakshmanan [Fri, 29 Mar 2024 09:08:23 +0000 (10:08 +0100)] 
patch 9.1.0226: Not able to assign enum values to an enum static variable

Problem:  Not able to assign enum values to an enum static variable
          (zzzyxwvut)
Solution: Make it work
          (Yegappan Lakshmanan)

related: #14224
closes: #14329

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0225: test_matchparen not run in CI v9.1.0225
Christian Brabandt [Thu, 28 Mar 2024 16:10:44 +0000 (17:10 +0100)] 
patch 9.1.0225: test_matchparen not run in CI

Problem:  test_matchparen not run in CI
Solution: add test_matchparen.res to NEW_TESTS_RES in Makefile,
          update changed highlighting dump from v9.1.61

closes: #14322

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0224: cursor may move too many lines over "right" & "below" virt text v9.1.0224
Dylan Thacker-Smith [Thu, 28 Mar 2024 11:01:14 +0000 (12:01 +0100)] 
patch 9.1.0224: cursor may move too many lines over "right" & "below" virt text

Problem:  If a line has "right" & "below" virtual text properties,
          where the "below" property may be stored first due to lack of
          ordering between them, then the line height is calculated to
          be 1 more and causes the cursor to far over the line.
Solution: Remove some unnecessary setting of a
          `next_right_goes_below = TRUE` flag for "below" and "above"
          text properties. (Dylan Thacker-Smith)

I modified a regression test I recently added to cover this case,
leveraging the fact that "after", "right" & "below" text properties are
being stored in the reverse of the order they are added in.  The
previous version of this regression test was crafted to workaround this
issue so it can be addressed by this separate patch.

closes: #14317

Signed-off-by: Dylan Thacker-Smith <dylan.ah.smith@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0223: code duplication in loop to add active text properties v9.1.0223
Dylan Thacker-Smith [Thu, 28 Mar 2024 10:49:46 +0000 (11:49 +0100)] 
patch 9.1.0223: code duplication in loop to add active text properties

Problem:  There are two dense conditions with duplication that needs to
          be kept in sync between the while loop break condition and the
          condition to skip certain text properties.
Solution: Refactor the loop by moving while loop conditions into the
          body of the while loop so they can be shared with skip
          conditions. `break` and an `active` variable are used to
          handle the outcome of these merged conditions.
          (Dylan Thacker-Smith)

closes: #14307

Signed-off-by: Dylan Thacker-Smith <dylan.ah.smith@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0222: missing 'below' virt text if truncation precedes after/right text v9.1.0222
Dylan Thacker-Smith [Thu, 28 Mar 2024 10:47:32 +0000 (11:47 +0100)] 
patch 9.1.0222: missing 'below' virt text if truncation precedes after/right text

Problem:  When a line is truncated just before 'after'/'right' virtual
          text and the line also has 'below' virtual text, then the
          'below' virtual text would not be displayed, depending on the
          order these text properties were added.
Solution: In the loop to make text properties active, skip instead of
          break for 'after'/'right' virtual text properties that are
          ignored due to truncation, so following 'below' text
          properties can still be made active.
          Similarly, a loop is needed to determine if a text property
          follows at the end of the screen. (Dylan Thacker-Smith)

related: #14307

Signed-off-by: Dylan Thacker-Smith <dylan.ah.smith@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0221: lines following virt text (that fills the window) might be truncated v9.1.0221
Dylan Thacker-Smith [Thu, 28 Mar 2024 10:40:41 +0000 (11:40 +0100)] 
patch 9.1.0221: lines following virt text (that fills the window)  might be truncated

Problem:  The if branch to set `text_prop_follows` was both checking if
          it was at the end of the buffer text line or if it was at the
          end of the screen line, but the former being true skipped
          a guard condition in the latter to only consider 'below'
          virtual text to follow. `text_prop_follows` being improperly
          set caused it to skip a conditional block to break at the end
          as well as one to move `ptr` to the end of the text line,
          while repeated for each following line of the window.
Solution: Move the check for whether 'below' virtual text should follow
          so it is also used when at the end of the buffer text line.
          (Dylan Thacker-Smith)

fixes: #12213
related: #14307

Signed-off-by: Dylan Thacker-Smith <dylan.ah.smith@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0220: Few typos in source and test files v9.1.0220
zeertzjq [Thu, 28 Mar 2024 10:37:26 +0000 (11:37 +0100)] 
patch 9.1.0220: Few typos in source and test files

Problem:  Typos in code and tests.
Solution: Fix typos (zeertzjq).

closes: #14321

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0219: Vim9: No enum support v9.1.0219
Yegappan Lakshmanan [Thu, 28 Mar 2024 09:36:42 +0000 (10:36 +0100)] 
patch 9.1.0219: Vim9: No enum support

Problem:  No enum support
Solution: Implement enums for Vim9 script
          (Yegappan Lakshmanan)

closes: #14224

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0218: Unnecessary multiplications in backspace code v9.1.0218
zeertzjq [Thu, 28 Mar 2024 09:30:08 +0000 (10:30 +0100)] 
patch 9.1.0218: Unnecessary multiplications in backspace code

Problem:  Unnecessary multiplications in backspace code, as
          "col / ts * ts" is the same as "col - col % ts".
Solution: Change "col / ts * ts" to "col - col % ts".  Adjust the loop
          and the comments ins_bs() to be easier to understand.  Update
          tests to reset 'smarttab' properly.
          (zeertzjq)

closes: #14308

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agotranslation(ru): Add translation for README.txt and uganda.txt (#14312)
Restorer [Thu, 28 Mar 2024 09:27:17 +0000 (09:27 +0000)] 
translation(ru):  Add translation for README.txt and uganda.txt (#14312)

* translation(ru): The main file README.txt and uganda.txt
* removed tags-ru

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0217: regexp: verymagic cannot match before/after a mark v9.1.0217
Julio B [Thu, 28 Mar 2024 09:23:37 +0000 (10:23 +0100)] 
patch 9.1.0217: regexp: verymagic cannot match before/after a mark

Problem:  regexp: verymagic cannot match before/after a mark
Solution: Correctly check for the very magic check (Julio B)

Fix regexp parser for \v%>'m and \v%<'m
Currently \v%'m works fine, but it is unable to match before or after
the position of mark m.

closes: #14309

Signed-off-by: Julio B <julio.bacel@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoNSIS: Possibility to include translated license and README.txt files (#14311)
Restorer [Thu, 28 Mar 2024 09:19:44 +0000 (09:19 +0000)] 
NSIS: Possibility to include translated license and README.txt files (#14311)

* NSIS: Possibility to include translated license and README.txt files
* fixed a missing semicolon
* Disable always show dialog choice language

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoUpdate README.txt and README.md (#14313)
Restorer [Thu, 28 Mar 2024 09:14:47 +0000 (09:14 +0000)] 
Update README.txt and README.md (#14313)

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0216: Error on exit with EXITFREE and 'winfixbuf' v9.1.0216
zeertzjq [Thu, 28 Mar 2024 09:11:57 +0000 (10:11 +0100)] 
patch 9.1.0216: Error on exit with EXITFREE and 'winfixbuf'

Problem:  Error on exit with EXITFREE and 'winfixbuf'.
Solution: Handle DT_FREE before checking for 'winfixbuf'.
          (zeertzjq)

closes: #14314

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0215: Half-page scrolling does not support smooth-scrolling v9.1.0215
Luuk van Baal [Thu, 28 Mar 2024 09:07:29 +0000 (10:07 +0100)] 
patch 9.1.0215: Half-page scrolling does not support smooth-scrolling

Problem:  Page-wise scrolling with Ctrl-D/Ctrl-U implements
          it's own logic to change the topline and cursor.
          More logic than necessary for scrolling with Ctrl-F/Ctrl-B
          was removed in patch 9.1.0211.
Solution: Re-use the logic from Ctrl-E/Ctrl-Y/Ctrl-F/Ctrl-B while
          staying backward compatible as much as possible.
          Restore some of the logic that determined how many lines will
          be scrolled (Luuk van Baal)

closes: #14316

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(vim): Update base-syntax, match empty blob and :abclear modifiers (#14318)
dkearns [Thu, 28 Mar 2024 09:06:03 +0000 (20:06 +1100)] 
runtime(vim): Update base-syntax, match empty blob and :abclear modifiers (#14318)

- Match empty blob literals.
- Match modifier arguments to :abclear commands.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0214: Duplicate condition in win_lbr_chartabsize() v9.1.0214
zeertzjq [Thu, 28 Mar 2024 09:04:25 +0000 (10:04 +0100)] 
patch 9.1.0214: Duplicate condition in win_lbr_chartabsize()

Problem:  Duplicate condition in win_lbr_chartabsize().
Solution: Remove the duplicate condition, as it's already checked above.
          (zeertzjq)

closes: #14320

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(haskell): allow TODO keywords in comments
Enrico Maria De Angelis [Thu, 28 Mar 2024 09:00:25 +0000 (10:00 +0100)] 
runtime(haskell): allow TODO keywords in comments

closes: #14319

Signed-off-by: Enrico Maria De Angelis <enricomaria.dean6elis@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(debcontrol): add Static-Built-Using field (#14306)
Guilherme Puida [Thu, 28 Mar 2024 08:56:50 +0000 (05:56 -0300)] 
runtime(debcontrol): add Static-Built-Using field (#14306)

Signed-off-by: Guilherme Puida <guilherme@puida.xyz>
Signed-off-by: James McCoy <jamessan@jamessan.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0213: CI: MS-Windows fails in test_winfixbuf v9.1.0213
Sean Dewar [Thu, 28 Mar 2024 08:48:34 +0000 (09:48 +0100)] 
patch 9.1.0213: CI: MS-Windows fails in test_winfixbuf

Problem:  CI: MS-Windows fails in test_winfixbuf
          (after v9.1.208)
Solution: Instead of skipping the test, write the file
          so it exists on disk, to verify that MS-Windows
          short filename expansion is successful.
          (Sean Dewar)

related: #14286

Signed-off-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0212: CI: MS-Windows fails in test_winfixbuf v9.1.0212
Christian Brabandt [Wed, 27 Mar 2024 09:44:14 +0000 (10:44 +0100)] 
patch 9.1.0212: CI: MS-Windows fails in test_winfixbuf

Problem:  CI: MS-Windows fails in test_winfixbuf
          (after v9.1.208)
Solution: Skip Ms-Windows for now, fix style

related: #14286

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(json5): add basic indent support (#14298)
Rocco Mao [Tue, 26 Mar 2024 18:02:44 +0000 (02:02 +0800)] 
runtime(json5): add basic indent support (#14298)

Signed-off-by: Rocco Mao <dapeng.mao@qq.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0211: page-wise scrolling does not support smooth-scrolling v9.1.0211
Luuk van Baal [Tue, 26 Mar 2024 17:46:45 +0000 (18:46 +0100)] 
patch 9.1.0211: page-wise scrolling does not support smooth-scrolling

Problem:  Page-wise scrolling with Ctrl-F/Ctrl-B implements
          it's own logic to change the topline and cursor.
          In doing so, skipcol is not handled properly for
          'smoothscroll', and virtual lines.
Solution: Re-use the logic from Ctrl-E/Ctrl-Y while staying
          backward compatible as much as possible.

closes: #14268

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0210: Motif: leaking memory when mui_mch_dialog() fails v9.1.0210
Christian Brabandt [Tue, 26 Mar 2024 17:44:48 +0000 (18:44 +0100)] 
patch 9.1.0210: Motif: leaking memory when mui_mch_dialog() fails

Problem:  Motif: leaking memory when mui_mch_dialog() fails
          (LuMingYinDetect)
Solution: When allocating the label using the XmStringCreateLtoR()
          function fails, before returning also free the allocated
          buttons pointer.

fixes: #14247
closes: #14280

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0209: leaking memory in exe_newdict() on error v9.1.0209
Christian Brabandt [Tue, 26 Mar 2024 17:42:52 +0000 (18:42 +0100)] 
patch 9.1.0209: leaking memory in exe_newdict() on error

Problem:  leaking memory in exe_newdict() on error
          (LuMingYinDetect)
Solution: free allocated dict if GA_GROW_FALIS()

fixes: #14255
closes: #14281

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0208: winfixbuf does not allow to re-edit current buffer v9.1.0208
Colin Kennedy [Tue, 26 Mar 2024 17:29:30 +0000 (18:29 +0100)] 
patch 9.1.0208: winfixbuf does not allow to re-edit current buffer

Problem:  winfixbuf does not allow to re-edit current buffer
          (Tim Pope, after v9.1.0147)
Solution: Explicitly allow :e even when 'winfixbuf' is set,
          since it just re-loads the current buffer
          (Colin Kennedy)

fixes: #14237
closes: #14286

Signed-off-by: Colin Kennedy <colinvfx@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0207: No autocommand when writing session file v9.1.0207
Colin Kennedy [Tue, 26 Mar 2024 17:20:16 +0000 (18:20 +0100)] 
patch 9.1.0207: No autocommand when writing session file

Problem:  No autocommand when writing session file
Solution: Add SessionWritePost autocommand
          (Colin Kennedy)

fixes: ##14242
closes: #14288

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Colin Kennedy <colinvfx@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(java): Update java[CR]_JavaLang type lists (#14297)
Aliaksei Budavei [Tue, 26 Mar 2024 17:12:05 +0000 (20:12 +0300)] 
runtime(java): Update java[CR]_JavaLang type lists (#14297)

- Add to the list of java.lang runtime exceptions two new
  types: MatchException (Pattern Matching for _switch_) and
  WrongThreadException (Virtual Threads).
- "Demote" Compiler (removed in JDK 21) from the list of
  java.lang class types to a new list javaLangDeprecated.

References:
https://bugs.openjdk.org/browse/JDK-8205129
https://bugs.openjdk.org/browse/JDK-8282274
https://bugs.openjdk.org/browse/JDK-8284161

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoUpdate README.md (#14302)
partev [Tue, 26 Mar 2024 17:09:05 +0000 (13:09 -0400)] 
Update README.md (#14302)

fix URL for MacVim

Signed-off-by: partev <petrosyan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0206: unused display_text_first boolean var in win_line() v9.1.0206
Dylan Thacker-Smith [Tue, 26 Mar 2024 17:05:01 +0000 (18:05 +0100)] 
patch 9.1.0206: unused display_text_first boolean var in win_line()

Problem:  unused display_text_first boolean var in win_line()
Solution: Remove unused display_text_first boolean variable
          (Dylan Thacker-Smith)

The only place it is used, uses its initial constant value, then the
following conditionally values set to the variable are unused.

Specifically, it was commit 234c3fab28c14846b962c90097496b27ee1b4df8
that changed the use of display_text_first such that it doesn't have any
effect.

closes: #14305

Signed-off-by: Dylan Thacker-Smith <dylan.ah.smith@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0205: Cannot use modifiers before :-Ntabmove v9.1.0205
zeertzjq [Mon, 25 Mar 2024 15:41:06 +0000 (16:41 +0100)] 
patch 9.1.0205: Cannot use modifiers before :-Ntabmove

Problem:  Cannot use modifiers before :-Ntabmove.
Solution: Check backwards from the command instead of checking from the
          start of the command line. Slightly adjust docs to make them
          more consistent (zeertzjq).

closes: #14289

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoNSIS: Redesigning the appearance of the vimrc settings page (#14292)
Restorer [Mon, 25 Mar 2024 15:38:37 +0000 (15:38 +0000)] 
NSIS: Redesigning the appearance of the vimrc settings page (#14292)

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0204: Backspace inserts spaces with virtual text and 'smarttab' v9.1.0204
zeertzjq [Mon, 25 Mar 2024 15:34:51 +0000 (16:34 +0100)] 
patch 9.1.0204: Backspace inserts spaces with virtual text and 'smarttab'

Problem:  Backspace inserts spaces with virtual text and 'smarttab'.
Solution: Ignore virtual text and wrapping when backspacing.
          (zeertzjq)

related: neovim/neovim#28005
closes: #14296

Co-authored-by: VanaIgr <vanaigranov@gmail.com>
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(doc): Update options.txt
Song-Tianxiang [Mon, 25 Mar 2024 15:31:02 +0000 (16:31 +0100)] 
runtime(doc): Update options.txt

closes: #14295

Signed-off-by: Song-Tianxiang <149415622+Song-Tianxiang@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0203: build-error on GNU/Hurd v9.1.0203
James McCoy [Mon, 25 Mar 2024 15:22:23 +0000 (16:22 +0100)] 
patch 9.1.0203: build-error on GNU/Hurd

Problem:  build-error on GNU HURD
Solution: Define _XOPEN_SOURCE like for Android and Cygwin
          (James McCoy)

strptime() requires _XOPEN_SOURCE to be defined for its declaration to
be visible.  This is already done for non-Android Linux and Cygwin, but
also needs to be exposed for GNU/Hurd.

closes: #14285

Signed-off-by: James McCoy <jamessan@jamessan.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(java): Recognise the inline kind of the {@return} tag (#14284)
Aliaksei Budavei [Mon, 25 Mar 2024 15:18:28 +0000 (18:18 +0300)] 
runtime(java): Recognise the inline kind of the {@return} tag (#14284)

Also:

- Refine comment matching (javaComment{Error\ and,Start}).
- Continue rewriting regexps (prefer atom grouping with
  non-capturing parens; factor out common prefixes in
  alternations).
- Allow for relative paths with the _file_ attribute of
  {@snippet}.
- Anticipate HTML in the @see tags.
- Match the nullary method parens in javaDocSeeTagParam.
- Improve the boundary patterns for summary sentences of
  documentation.

> This sentence ends at ... or at the first tag (as defined
> below).

There are Java documentation tags (@) and there are HTML
tags (<?>) (with Markdown looming large; see JEP 467).  With
block tags, e.g. @param, @return, @see, we begin another
documentation "sentence" whether or not the author has
terminated the summary sentence with a period; with
.<!-- -->, we may follow abbreviations, enumerations,
initials, (but instead consider @literal or &nbsp;) _within_
the summary sentence.  On the other hand, inline tags, e.g.
@code, @link, @literal, should not terminate the summary
sentence.

References:
https://bugs.openjdk.org/browse/JDK-8075778
https://www.oracle.com/technical-resources/articles/java/javadoc-tool.html#firstsentence
https://docs.oracle.com/en/java/javase/21/docs/specs/javadoc/doc-comment-spec.html

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(netrw): Fix typo in netrw#NetWrite (#14283)
dkearns [Sun, 24 Mar 2024 16:47:37 +0000 (03:47 +1100)] 
runtime(netrw): Fix typo in netrw#NetWrite (#14283)

Fix typo in netrw#NetWrite (http) error message call.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoNSIS: Update nsis installer and nsis docs (#14256)
Restorer [Sun, 24 Mar 2024 09:41:18 +0000 (09:41 +0000)] 
NSIS: Update nsis installer and nsis docs (#14256)

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(compiler): update errorformat for dot and neato compiler (#14257)
Enno [Sun, 24 Mar 2024 09:37:56 +0000 (10:37 +0100)] 
runtime(compiler): update errorformat for dot and neato compiler (#14257)

* add errorformat for dot compiler
* add errorformat for neato compiler

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0202: leaking memory in add_user() on failure v9.1.0202
Christian Brabandt [Sun, 24 Mar 2024 08:50:03 +0000 (09:50 +0100)] 
patch 9.1.0202: leaking memory in add_user() on failure

Problem:  leaking memory in add_user() (LuMingYinDetect)
Solution: free user_copy pointer instead of the user ptr

add_user() is called with a user pointer and the user pointer comes
from these functions:
- return value from the getpwent() function (Unix).
- return value from the getpwnam() function (Unix).
- return value from the NetUserEnum() function (MS Windows).

For the first 2 callers, the man page for those functions directly says,
one should not free the returned pointer (since it comes from static
memory).
For the third caller (on MS Windows), the returned buffer is already
freed directly after calling the add_user() function in
NetApiBufferFree(), so this would lead to a double free().

This all indicates, the user ptr is wrongly freed in the add_user()
function and the intention was to free the user_copy pointer instead in
case of an error.

So let's just use that now.

fixes: #14250
closes: #14260

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0201: gM not working correctly with virt text v9.1.0201
Dylan Thacker-Smith [Sun, 24 Mar 2024 08:46:56 +0000 (09:46 +0100)] 
patch 9.1.0201: gM not working correctly with virt text

Problem:  `gM` would include outer virtual text and its padding when
          getting the line length used to calculate the middle of the
          line, putting the cursor much closer to virtual text lines.
Solution: Exclude outer virtual text in getting the line length for
          `gM`, so that virtual text doesn't influence where the cursor
          is moved to (Dylan Thacker-Smith).

closes: #14262

Signed-off-by: Dylan Thacker-Smith <dylan.ah.smith@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0200: `gj`/`gk` not skipping over outer virtual text lines v9.1.0200
Dylan Thacker-Smith [Sun, 24 Mar 2024 08:43:25 +0000 (09:43 +0100)] 
patch 9.1.0200: `gj`/`gk` not skipping over outer virtual text lines

Problem:  `gj`/`gk` was updating the desired cursor virtual column to
          the outer virtual text, even though the actual cursor position
          was moved to not be on the virtual text, leading the need to
          do an extra `gj`/`gk` to move past each virtual text line.
          (rickhowe)
Solution: Exclude the outer virtual text when getting the line length
          for moving the cursor with `gj`/`gk`, so that no extra
          movement is needed to skip over virtual text lines.
          (Dylan Thacker-Smith)

fixes: #12028
related: #14262

Signed-off-by: Dylan Thacker-Smith <dylan.ah.smith@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(termdebug): allow multibyte characters as breakpoint signs (#14274)
Mihai Ciuraru [Sun, 24 Mar 2024 08:11:06 +0000 (10:11 +0200)] 
runtime(termdebug): allow multibyte characters as breakpoint signs (#14274)

Allow multibyte characters as termdebug signs using slice() function

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Mihai Ciuraru <mihai.ciuraru@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0199: Not enough tests for the slice() function v9.1.0199
zeertzjq [Sat, 23 Mar 2024 07:23:48 +0000 (08:23 +0100)] 
patch 9.1.0199: Not enough tests for the slice() function

Problem:  Not enough tests for the slice() function.
Solution: Test with multibyte chars, and in both Legacy and Vim9 script.
          Update docs to be clearer about how it treats composing chars.
          (zeertzjq)

closes: #14275

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0198: Vim9: compound operators broken for lambdas in an object v9.1.0198
Yegappan Lakshmanan [Fri, 22 Mar 2024 18:56:17 +0000 (19:56 +0100)] 
patch 9.1.0198: Vim9: compound operators broken for lambdas in an object

Problem:  Vim9: compound operators broken for lambdas in an object
          (girishji)
Solution: When using an object from the outer scope, use the LOADOUTER
          instruction to load the object (Yegappan Lakshmanan).

fixes: #14236
closes: #14266

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(vim): Update base-syntax, remove old unused syntax groups. (#14146)
dkearns [Fri, 22 Mar 2024 18:55:25 +0000 (05:55 +1100)] 
runtime(vim): Update base-syntax, remove old unused syntax groups. (#14146)

Remove old unused syntax groups.

- vimRegion, vimPattern and vimKeyword removed in Vim 5.3.
- vimAuSyntax, vimAutoCmdOpt, vimAutoSet and vimStatement removed in 5.6.

The following were linked in :hi commands but never defined with :syn
and, most likely, never used:
 - vimHLMod introduced in 5.0.
 - vimKeycode and vimKeycodeError introduced in 5.4.
 - vimElseif introduced in 5.6.
 - vimFold introduced in 6.4.
 - vimOperStar (and vimoperStar) introduced in 9.0.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0197: Vim9: problem evaluating negated boolean logic v9.1.0197
Yegappan Lakshmanan [Fri, 22 Mar 2024 18:37:29 +0000 (19:37 +0100)] 
patch 9.1.0197: Vim9: problem evaluating negated boolean logic

Problem:  Vim9: problem evaluating negated boolean logic
          (lxhillwind)
Solution: Don't clear the first value on short circuit evaluation
          (Yegappan Lakshmanan)

fixes: #14265
closes: #14269

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoCI: Fix for Sodium version 1.0.19 and MinGW (#14267)
Restorer [Fri, 22 Mar 2024 18:34:52 +0000 (18:34 +0000)] 
CI: Fix for Sodium version 1.0.19 and MinGW (#14267)

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(java): Recognise the {@snippet} documentation tag (#14271)
Aliaksei Budavei [Fri, 22 Mar 2024 18:32:48 +0000 (21:32 +0300)] 
runtime(java): Recognise the {@snippet} documentation tag (#14271)

Remember that ‘code fragments are typically Java source
code, but they may also be fragments of properties files,
source code in other languages, or plain text.’  Therefore,
with these changes, markup tags are highlighted in the Java
source files (as external snippets) and in the {@snippet}
tags.

Also:

- Improve matching of the multi-line {@code} documentation
  tag with any contained balanced braces.
- Recognise the {@literal} documentation tag.
- Highlight stray blanks in comments.

Related to an enhancement proposal for PCRE-like callouts
discussed at https://github.com/vim/vim/issues/11217.

References:
https://openjdk.org/jeps/413
https://docs.oracle.com/en/java/javase/21/docs/specs/javadoc/doc-comment-spec.html

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoCI: mingw complains about unknown escape sequence: '\l', fails with libsodium (#14259)
Christian Brabandt [Thu, 21 Mar 2024 20:55:22 +0000 (20:55 +0000)] 
CI: mingw complains about unknown escape sequence: '\l', fails with libsodium (#14259)

Problem:  CI: mingw complains about unknown escape sequence: '\l', fails with sodium v1.0.19
Solution: Use other slash instead, also revert sodium version to v1.0.18

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(vim): Update base-syntax, improve function definition highlighting (#14203)
dkearns [Thu, 21 Mar 2024 19:41:10 +0000 (06:41 +1100)] 
runtime(vim): Update base-syntax, improve function definition highlighting (#14203)

Improve function definition highlighting.

- Match bang and function modifiers - abort etc.
- Only match valid scope modifiers.
- Match listing commands.
- Don't match ex commands in function names.
- Split function syntax groups into :func and :def subgroups.
- Match Vim9-script parameter and return types.
- Limit legacy-script and Vim9-script comments to :func and :def
  definitions, respectively.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0196: filetype: support for gnuplot files is lacking v9.1.0196
RobbiZ98 [Thu, 21 Mar 2024 19:24:51 +0000 (20:24 +0100)] 
patch 9.1.0196: filetype: support for gnuplot files is lacking

Problem:  filetype: support for gnuplot files is lacking
Solution: Also detect *.gnuplot files
          (RobbiZ98)

closes: #14243

Signed-off-by: RobbiZ98 <113035863+RobbiZ98@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0195: memleak with ex_drop, NULL dereference v9.1.0195
Christian Brabandt [Thu, 21 Mar 2024 19:19:00 +0000 (20:19 +0100)] 
patch 9.1.0195: memleak with ex_drop, NULL dereference

Problem:  memleak with ex_drop(), NULL dereference
          (zeertzjq)
Solution: revert back to ex_rewind(), use curbuf instead of buf

fixes: #14246
closes: #14251

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0194: gcc complains about uninitialized var v9.1.0194
Christian Brabandt [Thu, 21 Mar 2024 19:12:59 +0000 (20:12 +0100)] 
patch 9.1.0194: gcc complains about uninitialized var

Problem:  gcc complains about uninitialized var
          (Tony Mechelynck)
Solution: initialize to NULL

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0193: May leak memory in completion when ga_grow() fails v9.1.0193
zeertzjq [Thu, 21 Mar 2024 06:11:58 +0000 (07:11 +0100)] 
patch 9.1.0193: May leak memory in completion when ga_grow() fails

Problem:  May leak memory in completion when ga_grow() fails.
Solution: Free "wca" when ga_grow() fails (zeertzjq).

fixes: #14248
closes: #14249

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(colors): don't unnecessarily reload v:colornames dict
Alin Mr [Wed, 20 Mar 2024 19:26:23 +0000 (20:26 +0100)] 
runtime(colors): don't unnecessarily reload v:colornames dict

fixes: #14234
closes: #14235

Signed-off-by: Alin Mr <almr.oss@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0192: drop: don't rewind when editing the same file v9.1.0192
Christian Brabandt [Wed, 20 Mar 2024 19:19:47 +0000 (20:19 +0100)] 
patch 9.1.0192: drop: don't rewind when editing the same file

Problem:  :drop tries to :rewind the argumentlist, which results in E37
          (after v9.1.0046)
Solution: instead of calling ex_rewind(), call open_buffer() only when
          re-using the initial empty buffer

fixes: #14219
closes: #14220

Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0191: Installer does not remove all files v9.1.0191
RestorerZ [Wed, 20 Mar 2024 19:15:51 +0000 (20:15 +0100)] 
patch 9.1.0191: Installer does not remove all files

Problem:  Installer does not remove all files
Solution: Update installer and delete all files on uninstall
          update Sodium library dependency, update Readme
          (RestorerZ)

closes: #14214

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0190: complete_info() returns wrong order of items v9.1.0190
Girish Palya [Wed, 20 Mar 2024 19:07:29 +0000 (20:07 +0100)] 
patch 9.1.0190: complete_info() returns wrong order of items

Problem:  complete_info() returns wrong order of items
          (after v9.0.2018)
Solution: Revert Patch v9.0.2018
          (Girish Palya)

bug fix: complete_info() gives wrong results

1) complete_info() reverses list of items during <c-p>
2) 'selected' item index is wrong during <c-p>
3) number of items returnd can be wrong

Solution:
- Decouple 'cp_number' from 'selected' index since they need not be
  correlated
- Do not iterate the list backwards
- Add targeted tests

Regression introduced by https://github.com/vim/vim/commit/69fb5afb3bc9da24c2fb0eafb0027ba9c6502fc2
Following are unnecessary commits to patch problems from above:
https://github.com/vim/vim/commit/fef66301665027f1801a18d796f74584666f41ef
https://github.com/vim/vim/commit/daef8c74375141974d61b85199b383017644978c

All the tests from above commits are retained though.

fixes: #14204
closes: #14241

Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(deb822sources): Add minimal ftplugin (#14240)
James McCoy [Wed, 20 Mar 2024 18:55:05 +0000 (14:55 -0400)] 
runtime(deb822sources): Add minimal ftplugin (#14240)

Set comment related options and avoid automatic line wrapping.

Signed-off-by: James McCoy <jamessan@jamessan.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0189: Memory leak with "above" virttext and 'relativenumber' v9.1.0189
zeertzjq [Wed, 20 Mar 2024 18:49:20 +0000 (19:49 +0100)] 
patch 9.1.0189: Memory leak with "above" virttext and 'relativenumber'

Problem:  Memory leak with "above" virtual text and 'relativenumber'.
Solution: Free "text_props" and "text_prop_idxs" before returning.
          Also fix off-by-one error causing line number to be drawn
          beyond end of window (zeertzjq).

fixes: #14239
closes: #14241

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agopatch 9.1.0188: filetype: no support for Vento files v9.1.0188
wrapperup [Tue, 19 Mar 2024 17:06:22 +0000 (18:06 +0100)] 
patch 9.1.0188: filetype: no support for Vento files

Problem:  Vento files are not recognized.
Solution: Recognize *.vto files as filetype "vento" (wrapperup)

Vento is a templating engine https://vento.js.org/

closes: #14229

Signed-off-by: wrapperup <wrapperup4@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
16 months agoruntime(vim): Update base-syntax, disallow '.' at start of menu item names (#14232)
dkearns [Tue, 19 Mar 2024 17:04:42 +0000 (04:04 +1100)] 
runtime(vim): Update base-syntax, disallow '.' at start of menu item names (#14232)

Disallow '.' at the start of a menu item name.

This is the menu path separator character and should be escaped with a
'\' in this case.

Partially fixes #14230.  "popup" is still incorrectly matched as the Ex
command.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>