]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
17 months agopatch 9.1.0540: Unused assignment in sign_define_cmd() v9.1.0540
zeertzjq [Sun, 7 Jul 2024 18:33:46 +0000 (20:33 +0200)] 
patch 9.1.0540: Unused assignment in sign_define_cmd()

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

closes: #15169

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

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

related: #15107

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

fixes: #15157

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

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

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

related: #15120

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

fixes: #15161

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

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

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

fixes: #8334
closes: #15124

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

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

fixes: #15033
closes: #15110

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

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

fixes: #14222

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

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

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

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

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

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

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

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

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

closes: #15117

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

If the user plays rebinding games such as

    nnoremap : ,
    nnoremap , :

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

closes: #15130

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

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

fixes: #15095
closes: #15105

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

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

closes: #15150

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

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

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

related: #15150

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

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

related: #15150

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

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

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

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

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

related: #15150
fixes: #14245

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

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

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

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

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

related: #10813
related: #15099

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

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

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

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

closes: #15148

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

fixes: #15107

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

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

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

closes: #15127

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

complements 62f7b55c1a4564f8744af9446bc7af47fe16a245

closes: #15114

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

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

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

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

closes: #15119

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

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

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

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

fixes: #538
closes: #15128

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

closes: #15138

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

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

closes: #15113

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

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

closes: #15099

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

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

closes: #15139

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

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

fixes: #15108

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

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

fixes: #15101
closes: #15102

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

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

closes: #15070

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

closes: #15091

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

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

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

Add a disassembly test.

fixes: #13244
closes: #15079

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

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

fixes: #15080
closes: #15082

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

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

references: python/cpython#105051

closes: #15088

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

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

fixes: #15090
closes: #15094

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

fixes: #15103
closes: #15106

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

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

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

closes: #15118

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

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

closes: #15125

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

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

closes: #15133

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

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

closes: #15144

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

closes: #15147

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

fixes: #15141

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

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

related: #15077

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

fixes: #15077

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

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

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

closes: #15086

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

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

closes: #15083

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

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

closes: #15081

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