]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
17 months agoruntime(doc): rename variable for pandoc markdown support
Christian Brabandt [Thu, 4 Jul 2024 09:23:51 +0000 (11:23 +0200)] 
runtime(doc): rename variable for pandoc markdown support

fixes: #15141

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

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

related: #15077

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

fixes: #15077

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

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

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

closes: #15086

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

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

closes: #15083

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

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

closes: #15081

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0515: Vim9: segfault in object_equal() v9.1.0515
Ernie Rael [Sun, 23 Jun 2024 07:54:45 +0000 (09:54 +0200)] 
patch 9.1.0515: Vim9: segfault in object_equal()

Problem:  Vim9: segfault in object_equal()
Solution: test for object pointer being NULL, before dereferencing them
          (Ernie Rael)

closes: #15085

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0514: Vim9: issue with comparing objects recursively v9.1.0514
LemonBoy [Sat, 22 Jun 2024 15:25:07 +0000 (17:25 +0200)] 
patch 9.1.0514: Vim9: issue with comparing objects recursively

Problem:  Vim9: issue with comparing objects recursively
          (Yinzuo Jiang)
Solution: only set recursive == TRUE, when called from tv_equal(), not
          from typeval_compare_object(), refactor code into object_equal()
          function (LemonBoy)

The recursive flag in tv_equal should be set only when the caller is
tv_equal, meaning that the comparison depth is > 1. The comparison
predicates for other object types are all following this rule, except
for the object one, and that may cause some weird issues like causing
the max depth limit not to be initialized in some cases.

closes: #15076

Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(termdebug): Change some variables to Enums
Yinzuo Jiang [Sat, 22 Jun 2024 14:28:19 +0000 (16:28 +0200)] 
runtime(termdebug): Change some variables to Enums

Problem:  The types of some script variables in Termdebug
          can be changed for readability
Solution: Change the type of some vars from string to `enum`
          (Yinzuo Jiang)

closes: #15068

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agoruntime(vim): Update base-syntax, fix function tail comments
Doug Kearns [Sat, 22 Jun 2024 09:20:36 +0000 (11:20 +0200)] 
runtime(vim): Update base-syntax, fix function tail comments

Match Vim9-script comments after :def and :enddef and legacy-script
comments after :func and :endfunc, in any definition context.

Highlight incorrect comment types after these commands as errors.

fixes: #15062
closes: #15072

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
17 months agopatch 9.1.0513: Vim9: segfault with object comparison v9.1.0513
Ernie Rael [Sat, 22 Jun 2024 09:12:00 +0000 (11:12 +0200)] 
patch 9.1.0513: Vim9: segfault with object comparison

Problem:  Vim9: segfault with object comparisons
Solution: increment recusive_cnt before calling typval_compare_object()
          (Ernie Rael)

closes: #15073

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0512: Mode message for spell completion doesn't match allowed keys v9.1.0512
zeertzjq [Fri, 21 Jun 2024 05:55:07 +0000 (07:55 +0200)] 
patch 9.1.0512: Mode message for spell completion doesn't match allowed keys

Problem:  Mode message for spell completion doesn't match allowed keys
          (Kyle Kovacs)
Solution: Show "^S" instead of "s".
          (zeertzjq)

This matches the code in vim_is_ctrl_x_key():

case CTRL_X_SPELL:
    return (c == Ctrl_S || c == Ctrl_P || c == Ctrl_N);

fixes: neovim/neovim#29431
closes: #15065

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0511: CursorMovedC triggered wrongly with setcmdpos() v9.1.0511
zeertzjq [Fri, 21 Jun 2024 05:51:40 +0000 (07:51 +0200)] 
patch 9.1.0511: CursorMovedC triggered wrongly with setcmdpos()

Problem:  CursorMovedC triggered wrongly with setcmdpos()
          (after v9.1.0507)
Solution: Remove the premature triggering.  Also don't trigger when
          cursor didn't move. (zeertzjq)

closes: #15064

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(scheme): update runtime files
Evan Hanson [Fri, 21 Jun 2024 05:37:49 +0000 (07:37 +0200)] 
runtime(scheme): update runtime files

Add TODO highlighting, disable text-wrapping, add "define-library" to
lispwords on CHICKEN. Update MAINTAINERS.

closes: #15063

Signed-off-by: Evan Hanson <evhan@foldling.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0510: CI: test_gettext fails on MacOS14 + MSVC Win v9.1.0510
Christian Brabandt [Fri, 21 Jun 2024 05:31:04 +0000 (07:31 +0200)] 
patch 9.1.0510: CI: test_gettext fails on MacOS14 + MSVC Win

Problem:  CI: test_gettext fails on MacOS14 + MSVC Win
          (after v9.1.0509)
Solution: Skip the test for now

related: #12447

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0509: not possible to translate Vim script messages v9.1.0509
Christ van Willegen [Thu, 20 Jun 2024 21:41:59 +0000 (23:41 +0200)] 
patch 9.1.0509: not possible to translate Vim script messages

Problem:  not possible to translate Vim script messages
          (RestorerZ)
Solution: implement bindtextdomain() and gettext() to support Vim script
          message translations (Christ van Willegen)

fixes: #11637
closes: #12447

Signed-off-by: Christ van Willegen <cvwillegen@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0508: termdebug plugin can be further improved v9.1.0508
Ubaldo Tiberi [Thu, 20 Jun 2024 20:17:34 +0000 (22:17 +0200)] 
patch 9.1.0508: termdebug plugin can be further improved

Problem:  termdebug plugin can be further improved
Solution: add sanity-check, timeout config, change vars to bool
          update docs, add more tests (Ubaldo Tiberi)

fixes: #15061
closes: #15057

Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@google.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(gomod): add gomod filetype plugin
yu-yk [Thu, 20 Jun 2024 20:08:19 +0000 (22:08 +0200)] 
runtime(gomod): add gomod filetype plugin

closes: #15060

Signed-off-by: yu-yk <yukkuen.yu@linktivity.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0507: hard to detect cursor movement in the command line v9.1.0507
Shougo Matsushita [Thu, 20 Jun 2024 20:05:16 +0000 (22:05 +0200)] 
patch 9.1.0507: hard to detect cursor movement in the command line

Problem:  hard to detect cursor movement in the command line
Solution: Add the CursorMovedC autocommand
          (Shougo Matsushita)

closes: #15040

Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(java): Optionally highlight parameterised types
Aliaksei Budavei [Thu, 20 Jun 2024 19:00:53 +0000 (21:00 +0200)] 
runtime(java): Optionally highlight parameterised types

In the presence of parameterised types whose names begin
with a capital letter and end with a less-than sign "<" that
introduces a type argument or a list of comma-separated type
arguments, followed by a greater-than sign ">", a variable
"g:java_highlight_generics" can be defined to have some
components of such types uniformly coloured (by picking
highlight groups for javaGenericsC{1,2}, javaWildcardBound).

For example,
------------------------------------------------------------
java.io.InputStream stream = java.io.InputStream.nullInputStream();
java.util.function.Function<String,
    java.util.function.BiFunction<String, String, String>> updater =
property -> (oldValue, newValue) -> oldValue;
java.util.logging.LogManager.getLogManager()
    .updateConfiguration(stream, updater);
------------------------------------------------------------

Note that the diamond form and explicit type arguments do
not qualify for this kind of recognition.

For example,
------------------------------------------------------------
new java.util.HashSet<>().<String>toArray(new String[0]);
------------------------------------------------------------

References:
https://docs.oracle.com/javase/specs/jls/se21/html/jls-4.html#jls-4.5
https://docs.oracle.com/javase/specs/jls/se21/html/jls-15.html#jls-15.9
https://docs.oracle.com/javase/specs/jls/se21/html/jls-15.html#jls-15.12.2.1

closes: #15050

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0506: filetype: .envrc & .prettierignore not recognized v9.1.0506
Tyler Miller [Thu, 20 Jun 2024 18:31:32 +0000 (20:31 +0200)] 
patch 9.1.0506: filetype: .envrc & .prettierignore not recognized

Problem:  filetype: .envrc & .prettierignore not recognized
Solution: Detect '.envrc' as shell and '.prettierignore' as gitignore
          filetype (Tyler Miller)

Support ft detection for `.envrc` files used by direnv, and
`.prettierignore` files used by prettier.

closes: #15053
resolves: neovim/neovim#29405

Signed-off-by: Tyler Miller <tmillr@proton.me>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0505: filetype: Faust files are not recognized v9.1.0505
PowerUser64 [Wed, 19 Jun 2024 18:32:11 +0000 (20:32 +0200)] 
patch 9.1.0505: filetype: Faust files are not recognized

Problem:  filetype: Faust files are not recognized
Solution: Detect '*.lib' files as Faust filetype, add detection for
          '*.dsp' files (Faust or Make), remove '*.lib' from Cobol
          filetype (PowerUser64)

closes: #14894

Signed-off-by: PowerUser64 <blake@blakenorth.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0504: inner-tag textobject confused about ">" in attributes v9.1.0504
Christian Brabandt [Wed, 19 Jun 2024 18:26:51 +0000 (20:26 +0200)] 
patch 9.1.0504: inner-tag textobject confused about ">" in attributes

Problem:  inner-tag textobject confused about ">" in attributes
Solution: Skip over quoted '>' when determining the start position

fixes: #15043
closes: #15049

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0503: cannot use fuzzy keyword completion v9.1.0503
glepnir [Wed, 19 Jun 2024 18:20:48 +0000 (20:20 +0200)] 
patch 9.1.0503: cannot use fuzzy keyword completion

Problem:  cannot use fuzzy keyword completion
          (Maxim Kim)
Solution: add the "fuzzycollect" value for the 'completeopt'
          setting, to gather matches using fuzzy logic (glepnir)

fixes: #14912
closes: #14976

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(java): Remove the group exclusion list from @javaTop
Aliaksei Budavei [Wed, 19 Jun 2024 18:10:47 +0000 (20:10 +0200)] 
runtime(java): Remove the group exclusion list from @javaTop

Instances of anonymous classes can be passed as method
arguments and should be subject to line folding as well.

closes: #15048

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(doc): wrong return type for execute() function
Marius Gedminas [Wed, 19 Jun 2024 17:59:23 +0000 (19:59 +0200)] 
runtime(doc): wrong return type for execute() function

The description clearly explains that this function returns a string.  I
think the 'Number' here is a copy/paste error.

closes: #15045

Signed-off-by: Marius Gedminas <marius@gedmin.as>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0502: MS-Windows: too much legacy code v9.1.0502
K.Takata [Wed, 19 Jun 2024 17:56:03 +0000 (19:56 +0200)] 
patch 9.1.0502: MS-Windows: too much legacy code

Problem:  MS-Windows: too much legacy code
Solution: Clean up old code
          (Ken Takata)

* Remove very old codes for Cygwin version of GCC.
  Nowadays Cygwin GCC cannot be used for building Win32 Vim.
  (The `-mno-cygwin` option was removed in Cygwin GCC4.)
* Remove old codes for old versions of MinGW.
  Remove `__MINGW32__` as much as possible.
* Adjust makefile.

closes: #15044

Signed-off-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0501: too complicated mapping restore in termdebug v9.1.0501
Ubaldo Tiberi [Wed, 19 Jun 2024 17:50:32 +0000 (19:50 +0200)] 
patch 9.1.0501: too complicated mapping restore in termdebug

Problem:  too complicated mapping restore in termdebug
Solution: simplify unmapping logic, add a few more tests
          (Ubaldo Tiberi)

closes: #15046

Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@google.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(nohlsearch): simplify mapping
Maxim Kim [Wed, 19 Jun 2024 17:42:47 +0000 (19:42 +0200)] 
runtime(nohlsearch): simplify mapping

Use <cmd> instead of <expr> with execute(...)[-1]

closes: #15047

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0500: cannot switch buffer in a popup v9.1.0500
Christian Brabandt [Tue, 18 Jun 2024 18:50:58 +0000 (20:50 +0200)] 
patch 9.1.0500: cannot switch buffer in a popup

Problem:  cannot switch buffer in a popup
          (Yggdroot)
Solution: add popup_setbuf() function

fixes: #15006
closes: #15026

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0499: MS-Windows: doesn't handle symlinks properly v9.1.0499
LemonBoy [Tue, 18 Jun 2024 18:43:51 +0000 (20:43 +0200)] 
patch 9.1.0499: MS-Windows: doesn't handle symlinks properly

Problem:  MS-Windows: doesn't handle symlinks properly
          (Timothy Madden)
Solution: Implement lstat() on MS-Windows
          (author)

lstat() differs from stat() in how it handles symbolic links, the former
doesn't resolve the symlink while the latter does so.

Implement a simple yet effective fallback using Win32 APIs.

fixes #14933
closes: #15014

Co-authored-by: K.Takata <kentkt@csc.jp>
Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0498: getcmdcompltype() interferes with cmdline completion v9.1.0498
zeertzjq [Tue, 18 Jun 2024 18:31:08 +0000 (20:31 +0200)] 
patch 9.1.0498: getcmdcompltype() interferes with cmdline completion

Problem:  getcmdcompltype() interferes with cmdline completion.
Solution: Don't set expand context when it's already set.
          (zeertzjq)

closes: #15036

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0497: termdebug can be further improved v9.1.0497
Ubaldo Tiberi [Tue, 18 Jun 2024 18:18:20 +0000 (20:18 +0200)] 
patch 9.1.0497: termdebug can be further improved

Problem:  termdebug can be further improved
Solution: refactor save/restore, update docs,
          add a new save/restore test (Ubaldo Tiberi)

closes: #15032

Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@google.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(filetype): update htmldjango detection
Afiq Nazrie [Tue, 18 Jun 2024 17:59:53 +0000 (19:59 +0200)] 
runtime(filetype): update htmldjango detection

- update tags to detect djangohtml based on
  https://docs.djangoproject.com/en/5.0/ref/templates/builtins/#built-in-tag-reference

- increase the lines to inspect to 40 lines

  10 lines is too few and might result in high false negative.
  Increasing it to 40 lines should reduce the false negative.

closes: #15037

Signed-off-by: Afiq Nazrie <afnazrie@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agotranslation(tr): Improve Turkish documentation
Emir SARI [Tue, 18 Jun 2024 17:50:14 +0000 (19:50 +0200)] 
translation(tr): Improve Turkish documentation

closes: #15041

Signed-off-by: Emir SARI <emir_sari@icloud.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(csv): include a simple csv filetype and syntax plugin
Maxim Kim [Tue, 18 Jun 2024 17:43:00 +0000 (19:43 +0200)] 
runtime(csv): include a simple csv filetype and syntax plugin

fixes: #15038

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(nohlsearch): include the the simple nohlsearch package
Maxim Kim [Tue, 18 Jun 2024 17:32:39 +0000 (19:32 +0200)] 
runtime(nohlsearch): include the the simple nohlsearch package

fixes: #15039
closes: #15042

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0496: matched text is highlighted case-sensitively v9.1.0496
glepnir [Mon, 17 Jun 2024 16:35:25 +0000 (18:35 +0200)] 
patch 9.1.0496: matched text is highlighted case-sensitively

Problem:  matched text is highlighted case-sensitively
Solution: use MB_STRNICMP, update highlighting when the base changes
          (glepnir)

fixes: #15021
closes: #15023

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0495: Matched text isn't highlighted in cmdline pum v9.1.0495
zeertzjq [Mon, 17 Jun 2024 16:25:32 +0000 (18:25 +0200)] 
patch 9.1.0495: Matched text isn't highlighted in cmdline pum

Problem:  Matched text isn't highlighted in cmdline pum.
Solution: Use cmdline completion pattern in cmdline mode.
          (zeertzjq)

closes: #15029

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(doc): Fix typos in several documents
h-east [Mon, 17 Jun 2024 16:12:30 +0000 (18:12 +0200)] 
runtime(doc): Fix typos in several documents

closes: #15034

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(doc): clarify when text properties are cleared
Christian Brabandt [Mon, 17 Jun 2024 11:17:58 +0000 (13:17 +0200)] 
runtime(doc): clarify when text properties are cleared

related: #15030

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(doc): improve the vim-shebang example
Christian Brabandt [Mon, 17 Jun 2024 11:06:34 +0000 (13:06 +0200)] 
runtime(doc): improve the vim-shebang example

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(doc): revert unintended formatting changes for termdebug
Christian Brabandt [Mon, 17 Jun 2024 03:29:37 +0000 (05:29 +0200)] 
runtime(doc): revert unintended formatting changes for termdebug

fixes: #15028

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(java): Add a config variable for commonly used compiler options
Doug Kearns [Sun, 16 Jun 2024 14:58:09 +0000 (16:58 +0200)] 
runtime(java): Add a config variable for commonly used compiler options

The value of g:javac_makeprg_params, if set, is added to the value of
'makeprg' as an option string.

closes: #14999

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0494: Wrong matched text highlighted in pum with 'rightleft' v9.1.0494
zeertzjq [Sun, 16 Jun 2024 14:51:25 +0000 (16:51 +0200)] 
patch 9.1.0494: Wrong matched text highlighted in pum with 'rightleft'

Problem:  Wrong matched text highlighted in pum with 'rightleft'.
Solution: Match using the original text instead of the reversed text.
          (zeertzjq)

closes: #15020

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(html): bump length of character references in syntax script (#15022)
Mohamed Akram [Sun, 16 Jun 2024 14:47:36 +0000 (18:47 +0400)] 
runtime(html): bump length of character references in syntax script (#15022)

This allows handling longer references such as
`&CounterClockwiseContourIntegral;`.

Signed-off-by: Mohamed Akram <mohd.akram@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(termdebug): properly check mapping variables using null_dict
shane.xb.qian [Sun, 16 Jun 2024 14:43:44 +0000 (16:43 +0200)] 
runtime(termdebug): properly check mapping variables using null_dict

closes: #15013

Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(kdl): fix KdlIndent and kdlComment in indent script (#15019)
Yinzuo Jiang [Sun, 16 Jun 2024 06:47:47 +0000 (14:47 +0800)] 
runtime(kdl): fix KdlIndent and kdlComment in indent script (#15019)

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0493: Test for patch 9.1.0489 doesn't fail without the fix v9.1.0493
zeertzjq [Sun, 16 Jun 2024 06:44:05 +0000 (08:44 +0200)] 
patch 9.1.0493: Test for patch 9.1.0489 doesn't fail without the fix

Problem:  Test for patch 9.1.0489 doesn't fail without the fix.
Solution: Use "!" flag of feedkeys() so that ex_normal_busy is not set
          and ins_compl_check_keys() is not skipped (zeertzjq).

closes: #15018

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(java): Fold multi-line comments with the syntax kind of &fdm (#15016)
Aliaksei Budavei [Sun, 16 Jun 2024 06:42:55 +0000 (09:42 +0300)] 
runtime(java): Fold multi-line comments with the syntax kind of &fdm (#15016)

Also:

- Restore the capability to mark as an error braces nested
  in parens with g:javaInParen.
- Try not to fold top-level-type bodies.  (Defining multiple
  package-private top level types in a single source file is
  not recommended as it can impose order among compilation
  units; so it is assumed that only one such top level type
  is usually defined.)
- Compose â€˜method header’ highlighting and block braces
  folding.
- Do not highlight block braces whenever â€˜method header’
  highlighting is requested.

This bundling of â€˜method headers’ and block braces for
highlighting can be traced back to Vim v5.0; however, no
comment or documentation entry conveys any justification.
For example, it is hard to discover the connection between
block braces for "while", "if", etc., statements and method
body block braces.  The former behaviour can be attained in,
e.g. ~/.vim/after/syntax/java.vim:

------------------------------------------------------------
if exists("g:java_highlight_functions")
    syn clear javaBlock javaInParen
    syn match javaBlockOther "[{}]"
    syn region javaBlock transparent matchgroup=javaBlockStart
\ start="\%(^\|^\S[^:]\+\)\@120<!{" end="}" fold
    hi def link javaBlockStart javaFuncDef
    hi def link javaBlockOther javaBlockStart

    if exists("g:java_mark_braces_in_parens_as_errors")
syn match javaInParen contained "[{}]"
    endif
endif
------------------------------------------------------------

Note: Read â€˜a method header omitting a _throws_ clause’ for
every â€˜method header’ appellation used above.

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(termdebug): using wrong type for PlaceSign()
shane.xb.qian [Sun, 16 Jun 2024 06:35:57 +0000 (08:35 +0200)] 
runtime(termdebug): using wrong type for PlaceSign()

Make sure to convert them to numbers.

fixes: #14994
closes: #15015

Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0492: filetype: Vim-script files not detected by shebang line v9.1.0492
Doug Kearns [Sun, 16 Jun 2024 06:32:15 +0000 (08:32 +0200)] 
patch 9.1.0492: filetype: Vim-script files not detected by shebang line

Problem:  Vim-script files may not be recognised
Solution: Add shebang line detection (Doug Kearns)

closes: #15012

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(zip): revert unintended change to zip#Write()
Christian Brabandt [Sat, 15 Jun 2024 14:05:35 +0000 (16:05 +0200)] 
runtime(zip): revert unintended change to zip#Write()

This was wrongly included as of patch 1c6734291295bf8aa39577840b40bb
because apparently I messed up the use of git apply :/

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(doc): add another tag for vim-shebang feature
Christian Brabandt [Sat, 15 Jun 2024 13:52:53 +0000 (15:52 +0200)] 
runtime(doc): add another tag for vim-shebang feature

related: #15011

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0491: Cmdline pum doesn't work properly with 'rightleft' v9.1.0491
zeertzjq [Sat, 15 Jun 2024 13:37:11 +0000 (15:37 +0200)] 
patch 9.1.0491: Cmdline pum doesn't work properly with 'rightleft'

Problem:  Cmdline pum doesn't work properly with 'rightleft'.
Solution: Don't use curwin->w_p_rl in cmdline mode in pum_redraw().  Use
          a static variable since pum_may_redraw() may be called in any
          mode.  Also correct position of other popups with 'rightleft'.
          (zeertzjq)

closes: #15005

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0490: minor style problems with patch 9.1.0487 v9.1.0490
glepnir [Sat, 15 Jun 2024 13:32:22 +0000 (15:32 +0200)] 
patch 9.1.0490: minor style problems with patch 9.1.0487

Problem:  minor style problems with patch 9.1.0487
Solution: use shown_compl instead of after_first_compl variable
          (glepnir)

closes: #15008

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
fix(completion): use exist shown_compl instead after_first_compl

18 months agopatch 9.1.0489: default completion may break with fuzzy v9.1.0489
glepnir [Sat, 15 Jun 2024 13:13:05 +0000 (15:13 +0200)] 
patch 9.1.0489: default completion may break with fuzzy

Problem:  default completion may break with fuzzy
Solution: check that completion_match_array is not null
          (glepnir)

closes: #15010

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0488: Wrong padding for pum "kind" with 'rightleft' v9.1.0488
zeertzjq [Sat, 15 Jun 2024 13:08:27 +0000 (15:08 +0200)] 
patch 9.1.0488: Wrong padding for pum "kind" with 'rightleft'

Problem:  Wrong padding for pum "kind" with 'rightleft'.
Solution: Fix off-by-one error (zeertzjq).

The screen_fill() above is end-exclusive, and
- With 'rightleft' it fills `pum_col - pum_base_width - n + 1` to `col`,
  so the next `col` should be `pum_col - pum_base_width - n`.
- With 'norightleft' it fills `col` to `pum_col - pum_base_width + n - 1`,
  so the next `col` should be `pum_col - pum_base_width + n`.

closes: #15004

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(vim): Update base-syntax, match shebang lines (#15011)
dkearns [Sat, 15 Jun 2024 13:06:17 +0000 (23:06 +1000)] 
runtime(vim): Update base-syntax, match shebang lines (#15011)

Match shebang lines in Vim9 and legacy script.

Mark these as an error if they appear anywhere other than the first line
of a legacy-script file.  In Vim9 script these match as normal line
comments rather than an error.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(zip): MS-Windows: handle files with spaces properly
Christian Brabandt [Sat, 15 Jun 2024 12:49:24 +0000 (14:49 +0200)] 
runtime(zip): MS-Windows: handle files with spaces properly

This change does the following 3 things:

1) non need to quote the file to be extracted

The zipfile plugin used to quote and fnameescape() the path to the
file to be extracted. However testing with unzip showed, that while this
works on Linux on Windows you shall not escape the blanks in filenames.

As long as the pathname is properly quoted, this words on Linux and
Windows.

2) reset shellslash (MS-Windows only)

When shellslash is set, filenames to the zip archive will be forward
quoted. However since the filename is eventually handed over to the
unzip command, we need to make sure to use native paths so that the
command will understand what file to open. Therefore, if shellslash is
set (and the shell is cmd.exe), replace any forward slashes by the
expected backslashes

3) style:
Use tabs for the Header, remove a few comments in the s:Escape() and
zip#read() functions

fixes: #14998

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(html): Restore HTML syntax file tests
Doug Kearns [Thu, 13 Jun 2024 15:59:34 +0000 (01:59 +1000)] 
runtime(html): Restore HTML syntax file tests

Rendered element content results in test failures on macOS and FreeBSD.

The included content for these elements was incidental to the primary
intent of the test to check element tag highlighting so set
g:html_no_rendering to disable content rendering.

FreeBSD fails for even an empty <strike> element.

See #13591 and #14215.

closes: #13595

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0487: completed item not update on fuzzy completion v9.1.0487
glepnir [Fri, 14 Jun 2024 19:11:56 +0000 (21:11 +0200)] 
patch 9.1.0487: completed item not update on fuzzy completion

Problem:  completed item not update on fuzzy completion
Solution: reset compl_shown_match when at original match position
          (glepnir)

closes: #14955

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0486: filetype: Snakemake files are not recognized v9.1.0486
Riley Bruins [Fri, 14 Jun 2024 18:47:05 +0000 (20:47 +0200)] 
patch 9.1.0486: filetype: Snakemake files are not recognized

Problem:  filetype: Snakemake files are not recognized
Solution: Detect '*.smk' and Snakefile files as snakemake filetype
          (Riley Bruins)

See:
https://snakemake.readthedocs.io/en/stable/snakefiles/deployment.html#distribution-and-reproducibility

closes: #14992

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(termdebug): make TermDebugSendCommand() a global function again
Damien Riegel [Fri, 14 Jun 2024 16:33:17 +0000 (12:33 -0400)] 
runtime(termdebug): make TermDebugSendCommand() a global function again

TermDebugSendCommand lost it's global visibility when converted to
vim9script. Restore it.

Fixes: 23f29ffc6427 ("runtime(termdebug): convert termdebug plugin to
       Vim9 script")
closes: #14997

Signed-off-by: Damien Riegel <damien@riegel.io>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(termdebug): close all buffers in the same way
Damien Riegel [Fri, 14 Jun 2024 16:15:11 +0000 (12:15 -0400)] 
runtime(termdebug): close all buffers in the same way

For ASM and Variables buffer, check were done to make sure they existed
before attempting to close them, but not for debugged program or gdb
communication. The debugged program window is a user-facing one and
user might close it manually, so it's better to check if it exists.

Signed-off-by: Damien Riegel <damien@riegel.io>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0485: Matched text shouldn't be highlighted in "kind" and "menu" v9.1.0485
zeertzjq [Fri, 14 Jun 2024 18:24:22 +0000 (20:24 +0200)] 
patch 9.1.0485: Matched text shouldn't be highlighted in "kind" and "menu"

Problem:  Matched text shouldn't be highlighted in "kind" and "menu".
Solution: Pass hlf_T instead of the attribute.  Fix indent.
          (zeertzjq)

closes: #14996

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(doc): fix wrong helptag for :defer
Christian Brabandt [Fri, 14 Jun 2024 18:22:05 +0000 (20:22 +0200)] 
runtime(doc): fix wrong helptag for :defer

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(vim): Update base-syntax, match :sleep arg
Doug Kearns [Fri, 14 Jun 2024 18:16:35 +0000 (20:16 +0200)] 
runtime(vim): Update base-syntax, match :sleep arg

Match :sleep arg properly including a lone "m" with a leading count.

closes: #15003

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(keymap): include Georgian keymap
Misho [Fri, 14 Jun 2024 18:13:17 +0000 (20:13 +0200)] 
runtime(keymap): include Georgian keymap

closes: #15002

Signed-off-by: Misho <nnamper@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0484: Sorting of completeopt+=fuzzy is not stable v9.1.0484
zeertzjq [Fri, 14 Jun 2024 18:04:42 +0000 (20:04 +0200)] 
patch 9.1.0484: Sorting of completeopt+=fuzzy is not stable

Problem:  Sorting of completeopt+=fuzzy is not stable.
Solution: Compare original indexes when scores are the same.
          (zeertzjq)

closes: #14988

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(netrw): correctly test for windows in NetrwGlob()
Christian Brabandt [Fri, 14 Jun 2024 06:19:22 +0000 (08:19 +0200)] 
runtime(netrw): correctly test for windows in NetrwGlob()

use has("win32") instead of has("win64") otherwise it
won't work on x86 systems.

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(netrw): glob() on windows fails with [] in directory name
Christian Brabandt [Thu, 13 Jun 2024 19:25:35 +0000 (21:25 +0200)] 
runtime(netrw): glob() on windows fails with [] in directory name

fixes: #14952
closes: #14991

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(doc): rewrite mkdir() doc and simplify {flags} meaning
Christian Brabandt [Thu, 13 Jun 2024 19:21:41 +0000 (21:21 +0200)] 
runtime(doc): rewrite mkdir() doc and simplify {flags} meaning

related: #14991

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0483: glob() not sufficiently tested v9.1.0483
Christian Brabandt [Thu, 13 Jun 2024 19:20:20 +0000 (21:20 +0200)] 
patch 9.1.0483: glob() not sufficiently tested

Problem:  glob() not sufficiently tested
Solution: Add more tests for directory containing [] chars

related: #14991

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(doc): update return type for job_info()
Christian Brabandt [Thu, 13 Jun 2024 18:46:23 +0000 (20:46 +0200)] 
runtime(doc): update return type for job_info()

related: #14982

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoREADME.md: Update link to release archives
Patrick Brinich-Langlois [Thu, 13 Jun 2024 18:22:13 +0000 (20:22 +0200)] 
README.md: Update link to release archives

The releases page doesn't have anything listed.

closes: #14990

Signed-off-by: Patrick Brinich-Langlois <pbrinichlanglois@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0482: termdebug plugin needs more love v9.1.0482
Ubaldo Tiberi [Thu, 13 Jun 2024 17:23:07 +0000 (19:23 +0200)] 
patch 9.1.0482: termdebug plugin needs more love

Problem:  termdebug plugin needs more love
Solution: start with some more Vim9 refactoring
          to improve maintenance and readability
          (Ubaldo Tiberi)

List of Changes and the Reasoning Behind Them:

1) Introduction of InitScriptVariables() Function:

Reasoning: This function has been introduced to ensure that when you open and
close Termdebug, and then open it again, there are no leftover script variable
values from the previous session. Leftover values could potentially cause
issues. The goal is for each Termdebug session to be independent of previous
sessions. At startup, all script variables are initialized. The only exception
is g:termdebug_loaded located at the very beginning of the script to prevent
sourcing the script twice. The variables are declared at script level and
defined in InitScriptVariables().

2) More Descriptive Variable Names:

Reasoning: The names of variables have been made more comprehensive. Almost
every Termdebug buffer now has a variable to indicate its name and another
variable to indicate its number, improving code readability and
maintainability. Due to the latest discussion around the &mousemodel option
save/restore mechanism, perhaps some other variables shall be prepended with
saved_.

3) Consistent Naming for GDB Terminal Buffers:

Reasoning: The name of the GDB terminal buffer now matches the name of the GDB
program being used, e.g., 'gdb', 'mygdb', 'arm-eabi-none-gdb', etc. This
ensures clarity and consistency in identifying buffers.

4) Other minor improvements:
Moved EchoErr() on top, added another test, some refactoring, mainly changed
several 0 and 1 to true and false

closes: #14980

Signed-off-by: Ubaldo Tiberi <ubaldo.tiberi@volvo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(doc): correct return types for job_start() and job_status()
Christian Brabandt [Thu, 13 Jun 2024 17:13:28 +0000 (19:13 +0200)] 
runtime(doc): correct return types for job_start() and job_status()

fixes: #14982

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(vim): Update base-syntax, match :catch and :throw args (#14989)
dkearns [Thu, 13 Jun 2024 15:48:10 +0000 (01:48 +1000)] 
runtime(vim): Update base-syntax, match :catch and :throw args (#14989)

Match :catch /{pattern}/ and :throw {expr1}.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(java): Include element values in non-marker annotations (#14979)
Aliaksei Budavei [Thu, 13 Jun 2024 15:30:09 +0000 (18:30 +0300)] 
runtime(java): Include element values in non-marker annotations (#14979)

Make a formal definition for normal and single-element kinds
of annotations that otherwise require for their containment
to repeat each time all syntax groups that describe element
values.

Reference:
https://docs.oracle.com/javase/specs/jls/se21/html/jls-9.html#jls-9.7

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0481: Vim9: term_getjob() throws an exception on error v9.1.0481
Ernie Rael [Thu, 13 Jun 2024 15:24:54 +0000 (17:24 +0200)] 
patch 9.1.0481: Vim9: term_getjob() throws an exception on error

Problem:  Vim9: term_getjob() throws an exception on error
Solution: Return null_job instead, when there is no job
          (Ernie Rael)

closes: #14984

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0480: fuzzy string matching executed when not needed v9.1.0480
glepnir [Thu, 13 Jun 2024 15:21:24 +0000 (17:21 +0200)] 
patch 9.1.0480: fuzzy string matching executed when not needed

Problem:  fuzzy string matching executed when not needed
Solution: when no leader is available, can skip fuzzy logic, so return
          early (glepnir)

closes: #14986

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0479: fuzzy_match_str_with_pos() does unnecessary list operations v9.1.0479
zeertzjq [Thu, 13 Jun 2024 15:14:27 +0000 (17:14 +0200)] 
patch 9.1.0479: fuzzy_match_str_with_pos() does unnecessary list operations

Problem:  fuzzy_match_str_with_pos() does unnecessary list operations.
Solution: Use fuzzy_match() directly (zeertzjq).

closes: #14987

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(doc): restore description of "$" in col() and virtcol() (#14981)
zeertzjq [Thu, 13 Jun 2024 15:00:25 +0000 (23:00 +0800)] 
runtime(doc): restore description of "$" in col() and virtcol() (#14981)

These are different from line() and getpos().

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(doc): deduplicate getpos(), line(), col(), virtcol()
zeertzjq [Wed, 12 Jun 2024 18:45:24 +0000 (20:45 +0200)] 
runtime(doc): deduplicate getpos(), line(), col(), virtcol()

Move the main description to getpos() and link to that from the other
functions.

closes: #14970

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(vim): Update g:vimsyn_comment_strings dump file tests
Doug Kearns [Wed, 12 Jun 2024 18:44:10 +0000 (20:44 +0200)] 
runtime(vim): Update g:vimsyn_comment_strings dump file tests

Leading whitespace is no longer matched as part of the line comment as
of #13936.

closes: #14971

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(termdebug): Use string interpolation instead of string concat
Yegappan Lakshmanan [Wed, 12 Jun 2024 18:37:05 +0000 (20:37 +0200)] 
runtime(termdebug): Use string interpolation instead of string concat

closes: #14972

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0478: potential deref of NULL pointer in fuzzy_match_str_with_pos v9.1.0478
glepnir [Wed, 12 Jun 2024 18:31:13 +0000 (20:31 +0200)] 
patch 9.1.0478: potential deref of NULL pointer in fuzzy_match_str_with_pos

Problem:  potential deref of NULL pointer in fuzzy_match_str_with_pos()
          on cleanup (after v9.1.0476)
Solution: Only free the pointer if it is non-NULL (glepnir)

closes: #14973

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0477: block_editing errors out when using <enter> v9.1.0477
Christian Brabandt [Tue, 11 Jun 2024 18:30:14 +0000 (20:30 +0200)] 
patch 9.1.0477: block_editing errors out when using <enter>

Problem:  block_editing errors out when using <enter>
          (Ali Rizvi-Santiago, after v9.1.0274)
Solution: Change ins_len from size_t to int so that the test
          if ins_len is negative actually works properly

Add a test, so that this doesn't regress.

fixes: #14960

Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(vim): Update base-syntax, configurable comment string highlighting (#14931)
dkearns [Tue, 11 Jun 2024 18:18:08 +0000 (04:18 +1000)] 
runtime(vim): Update base-syntax, configurable comment string highlighting (#14931)

Allow highlighting of strings within comments to be disabled by setting
g:vimsyn_comment_strings to false.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(doc): fix typos in syntax.txt
Ken Takata [Tue, 11 Jun 2024 17:45:32 +0000 (19:45 +0200)] 
runtime(doc): fix typos in syntax.txt

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0476: Cannot see matched text in popup menu v9.1.0476
glepnir [Tue, 11 Jun 2024 17:37:04 +0000 (19:37 +0200)] 
patch 9.1.0476: Cannot see matched text in popup menu

Problem:  Cannot see matched text in popup menu
Solution: Introduce 2 new highlighting groups: PmenuMatch and
          PmenuMatchSel (glepnir)

ping @habamax, @neutaaaaan @romainl because vim/colorschemes may need
some updates, @lifepillar for updating vim-colortemplate

closes: #14694

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(vim): Update base-syntax, match multiline continued comments (#13936)
dkearns [Tue, 11 Jun 2024 17:27:53 +0000 (03:27 +1000)] 
runtime(vim): Update base-syntax, match multiline continued comments (#13936)

Match multiline (continued) line comments.

Continued tail comments are not supported yet.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(doc): clarify documentation for "v" position at line()
Peter Aronoff [Tue, 11 Jun 2024 17:22:53 +0000 (19:22 +0200)] 
runtime(doc): clarify documentation for "v" position at line()

Problem: the previous documentation falsely states that "v" always
refers to the start of a visual area.  In fact, the reference of "v" and
"." complement each other.  If the cursor is at the start of
a (characterwise) visual area, then "v" refers to the end of the area.

Solution: be more verbose and explicit about the connection between "."
and "v" and also refer to |v_o| which many vim users will be familiar
with for visual areas.

Signed-off-by: Peter Aronoff <peter@aronoff.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agopatch 9.1.0475: cmod_split modifier is always reset in term_start() v9.1.0475
Yegappan Lakshmanan [Tue, 11 Jun 2024 17:18:12 +0000 (19:18 +0200)] 
patch 9.1.0475: cmod_split modifier is always reset in term_start()

Problem:  cmod_split modifier is always reset in term_start()
Solution: only clear the WSP_VERT flag, if it is not already in
          cmdmod.cmod_split (Yegappan Lakshmanan)

closes: #14961

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(termdebug): remove line-continuation characters
Yegappan Lakshmanan [Tue, 11 Jun 2024 17:10:32 +0000 (19:10 +0200)] 
runtime(termdebug): remove line-continuation characters

Those are no longer needed for Vim9.

related: #14961

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(kdl): use shiftwidth() instead of &tabstop in indent script
Yinzuo Jiang [Tue, 11 Jun 2024 17:06:02 +0000 (19:06 +0200)] 
runtime(kdl): use shiftwidth() instead of &tabstop in indent script

closes: #14962

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(vim): Remove orphaned screen dump files (#14965)
dkearns [Tue, 11 Jun 2024 17:04:46 +0000 (03:04 +1000)] 
runtime(vim): Remove orphaned screen dump files (#14965)

These are no longer generated by the current test input files.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 months agoruntime(kdl): include syntax, indent and ftplugin files
inzuo Jiang [Mon, 10 Jun 2024 19:13:56 +0000 (21:13 +0200)] 
runtime(kdl): include syntax, indent and ftplugin files

closes: #14956

Co-authored-by: Aram Drevekenin <aram@poor.dev>
Signed-off-by: inzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>