]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
17 months agoCI: Pre-v9.0.0110 versions generate bogus documentation tag entries
Aliaksei Budavei [Sat, 6 Jul 2024 09:37:04 +0000 (11:37 +0200)] 
CI: Pre-v9.0.0110 versions generate bogus documentation tag entries

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

related: #10813
related: #15099

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

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

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

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

closes: #15148

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

fixes: #15107

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

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

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

closes: #15127

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

complements 62f7b55c1a4564f8744af9446bc7af47fe16a245

closes: #15114

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

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

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

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

closes: #15119

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

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

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

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

fixes: #538
closes: #15128

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

closes: #15138

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

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

closes: #15113

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

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

closes: #15099

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

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

closes: #15139

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

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

fixes: #15108

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

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

fixes: #15101
closes: #15102

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

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

closes: #15070

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

closes: #15091

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

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

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

Add a disassembly test.

fixes: #13244
closes: #15079

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

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

fixes: #15080
closes: #15082

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

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

references: python/cpython#105051

closes: #15088

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

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

fixes: #15090
closes: #15094

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

fixes: #15103
closes: #15106

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

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

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

closes: #15118

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

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

closes: #15125

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

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

closes: #15133

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

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

closes: #15144

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

closes: #15147

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

fixes: #15141

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

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

related: #15077

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

fixes: #15077

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

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

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

closes: #15086

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

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

closes: #15083

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

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

closes: #15081

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