]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
14 months agopatch 9.1.0415: Some functions are not tested v9.1.0415
Yegappan Lakshmanan [Fri, 17 May 2024 16:20:43 +0000 (18:20 +0200)] 
patch 9.1.0415: Some functions are not tested

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

closes: #14789

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

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

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

fixes: #14726
closes: #14783

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

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

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

Fix the issues introduced by #14770.

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

closes: #14770

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

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

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

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

closes: #14771

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

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

fixes: #14750
closes: #14772

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

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

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

closes: #14778

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

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

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

fixes: #14752

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

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

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

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

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

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

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

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

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

before lines are compared between files.

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

regression introduced in ce2ad9ffd79fe6b2307cd46b9

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

related: #14739

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

fixes: #14758

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

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

closes: #14755

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

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

closes: #14754

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

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

closes: #14648

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

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

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

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

closes: #14526

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

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

fixes: #14743
closes: #14746

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

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

closes: #14747

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

closes: #14748

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

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

closes: #14742

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

Also:

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

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

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

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

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

Also:

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

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

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

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

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

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

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

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

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

closes: #14738

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

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

fixes: #13313
closes: #14740

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

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

closes: #14741

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

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

closes: #14737

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

closes: #14739

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

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

fixes: #13153
closes: #14736

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

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

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

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

fixes: #14734
closes: #14735

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(spec): add new items to scripts section in syntax plugin
Maxwell G [Wed, 8 May 2024 18:27:58 +0000 (20:27 +0200)] 
runtime(spec): add new items to scripts section in syntax plugin

- %generate_buildrequires — added in RPM 4.15
- %conf — added in RPM 4.18

closes: #14723

Ref: https://rpm-software-management.github.io/rpm/manual/spec.html#build-scriptlets

Signed-off-by: author
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0398: Vim9: imported vars are not properly type checked v9.1.0398
Yegappan Lakshmanan [Wed, 8 May 2024 18:24:33 +0000 (20:24 +0200)] 
patch 9.1.0398: Vim9: imported vars are not properly type checked

Problem:  Vim9: imported vars are not properly type checked
Solution: Check the imported variable type properly
          (Yegappan Lakshmanan)

closes: #14729

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0397: Wrong display with 'smoothscroll' when changing quickfix list v9.1.0397
zeertzjq [Wed, 8 May 2024 18:22:40 +0000 (20:22 +0200)] 
patch 9.1.0397: Wrong display with 'smoothscroll' when changing quickfix list

Problem:  Wrong display with 'smoothscroll' when changing quickfix list.
Solution: Reset w_skipcol when replacing quickfix list (zeertzjq).

closes: #14730

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0396: filetype: jj files are not recognized v9.1.0396
Gregory Anders [Wed, 8 May 2024 18:17:43 +0000 (20:17 +0200)] 
patch 9.1.0396: filetype: jj files are not recognized

Problem:  jj files are not recognized
Solution: recognize '*.jjdescription' files as jj filetype
          (Gregory Anders)

See: https://github.com/martinvonz/jj

closes: #14733

Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0395: getregionpos() may leak memory on error v9.1.0395
Christian Brabandt [Wed, 8 May 2024 17:50:26 +0000 (19:50 +0200)] 
patch 9.1.0395: getregionpos() may leak memory on error

Problem:  regionpos may leak memory on error, coverity
          complains about dereferencing Null pointer
Solution: free all list pointers (after v9.1.394),
          return early if buflist_findnr() returns NULL

closes: #14731

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoThe CODEOWNERS File is not useful
Christian Brabandt [Wed, 8 May 2024 17:39:54 +0000 (19:39 +0200)] 
The CODEOWNERS File is not useful

Github is complaining about "This file has errors" and is just noisy
and for that reason does not ping maintainers if a new issue/PR is
created.
Let's just rename it to MAINTAINERS file instead and update the
documentation.

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(netrw): Remove and cleanup Win9x legacy from netrw
Nir Lichtman [Wed, 8 May 2024 17:19:34 +0000 (19:19 +0200)] 
runtime(netrw): Remove and cleanup Win9x legacy from netrw

closes: #14732

Signed-off-by: Nir Lichtman <nir@lichtman.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(doc): add MsgArea to 'highlight' option description
Christian Brabandt [Tue, 7 May 2024 19:19:03 +0000 (21:19 +0200)] 
runtime(doc): add MsgArea to 'highlight' option description

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0394: Cannot get a list of positions describing a region v9.1.0394
Shougo Matsushita [Tue, 7 May 2024 18:49:24 +0000 (20:49 +0200)] 
patch 9.1.0394: Cannot get a list of positions describing a region

Problem:  Cannot get a list of positions describing a region
          (Justin M. Keyes, after v9.1.0120)
Solution: Add the getregionpos() function
          (Shougo Matsushita)

fixes: #14609
closes: #14617

Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(cpp): Fix digit separator in syntax script for octals and floats
Wu Yongwei [Tue, 7 May 2024 16:24:55 +0000 (18:24 +0200)] 
runtime(cpp): Fix digit separator in syntax script for octals and floats

Also fix the incorrect rendering of floats that start with ".".

closes: #14724

Signed-off-by: Wu Yongwei <wuyongwei@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoREADME.md: Update link to Wikipedia Vi page
Christian Brabandt [Tue, 7 May 2024 16:17:00 +0000 (18:17 +0200)] 
README.md: Update link to Wikipedia Vi page

fixes: #14725

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(sh,zsh): clear $MANPAGER in ftplugin before shelling out
D. Ben Knoble [Mon, 6 May 2024 17:52:53 +0000 (19:52 +0200)] 
runtime(sh,zsh): clear $MANPAGER in ftplugin before shelling out

Say you use Vim and set MANPAGER='vim -M +MANPAGER --not-a-term -'; then
:{Zs,S}hKeywordPrg (or K) will crap out and spew terminal garbage into
less when bash's "help" fails. This was introduced by 2f25e40b1
(runtime: configure keywordpg for some file types (#5566), 2023-08-23)
and may be present in other files touched by that commit.

Make the "man" invocation sensible by unsetting MANPAGER in the
environment.

Note that changing MANPAGER for `:terminal` is not needed; Vim within
Vim is perfectly fine.

closes: #14679

Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(doc): Fix typos in help documents
h-east [Sun, 5 May 2024 16:42:31 +0000 (18:42 +0200)] 
runtime(doc): Fix typos in help documents

closes: #14720

Co-authored-by: Christian Clason <c.clason@uni-graz.at>
Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0393: 'viewdir' not respecting $XDG_CONFIG_HOME v9.1.0393
Christian Brabandt [Sat, 4 May 2024 07:48:15 +0000 (09:48 +0200)] 
patch 9.1.0393: 'viewdir' not respecting $XDG_CONFIG_HOME

Problem:  'viewdir' not respecting $XDG_CONFIG_HOME
          (Danilo Rezende, after v9.1.327)
Solution: adjust 'viewdir' option when enabling XDG config mode

fixes: #14680
closes: #14708

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0392: tests: Vim9 debug tests may be flaky v9.1.0392
Christian Brabandt [Sat, 4 May 2024 07:38:59 +0000 (09:38 +0200)] 
patch 9.1.0392: tests: Vim9 debug tests may be flaky

Problem:  tests: Vim9 debug tests may be flaky
          (Shane-XB-Qian)
Solution: Give a few more lines so that line-wrapping won't
          cause a hit-enter prompt

The two tests Run_Test_debug_running_out_of_lines() and
Run_Test_debug_with_lambda() test debugging of Vim script functions.

Depending from what file-path the tests are run, it may cause
line wrapping to occur on the following output:

Entering Debug mode.  Type "cont" to continue.
command line..script
/home/chrisbra/code/vim-upstream/src/testdir/XdebugFunc[15]..function
<SNR>9_Crash

and if the window is too small, this will cause a hit-enter prompt and so
the WaitForAssert() fails, causing failure of the following tests.

So increase the (internal) Vim window by a few more lines, so that even
if line-wrapping occurs, no hit-enter prompts happens and so the tests
can finish.

fixes: #14596
closes: #14691

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(doc): correct getscriptinfo() example (#14718)
zeertzjq [Sat, 4 May 2024 07:35:30 +0000 (15:35 +0800)] 
runtime(doc): correct getscriptinfo() example (#14718)

When "sid" is specified, it returns a List with a single item.

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0391: Vim9: could improve testing v9.1.0391
Yegappan Lakshmanan [Fri, 3 May 2024 16:24:07 +0000 (18:24 +0200)] 
patch 9.1.0391: Vim9: could improve testing

Problem:  Vim9: could improve testing
          (Ernie Rael)
Solution: Support defcompile for test_override() to
          improve testing (Yegappan Lakshmanan)

fixes: #14553
closes: #14712

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoCI: test_sound fails on macos-12 (#14715)
ichizok [Fri, 3 May 2024 16:22:35 +0000 (01:22 +0900)] 
CI: test_sound fails on macos-12 (#14715)

Signed-off-by: ichizok <gclient.gaap@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agotranslation(sr): update Serbian menu
Oleg Zadorozhnyi [Thu, 2 May 2024 20:16:10 +0000 (22:16 +0200)] 
translation(sr): update Serbian menu

closes: #14669
closes: #10722

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agotranslation(sk): update Slovak menu
Oleg Zadorozhnyi [Thu, 2 May 2024 20:10:41 +0000 (22:10 +0200)] 
translation(sk): update Slovak menu

closes: #14671
closes: #10721

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agotranslation(sl): update Slovenian menu
Oleg Zadorozhnyi [Thu, 2 May 2024 20:08:13 +0000 (22:08 +0200)] 
translation(sl): update Slovenian menu

closes: #14673

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agotranslation(pt): update Portuguese menu
Oleg Zadorozhnyi [Thu, 2 May 2024 20:05:45 +0000 (22:05 +0200)] 
translation(pt): update Portuguese menu

closes: #10718
closes: #10717
closes: #14674

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agotranslation(nl): update Dutch menu
Oleg Zadorozhnyi [Thu, 2 May 2024 20:02:30 +0000 (22:02 +0200)] 
translation(nl): update Dutch menu

closes: #14682

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agotranslation(ko): update Korean menu
Oleg Zadorozhnyi [Thu, 2 May 2024 19:59:58 +0000 (21:59 +0200)] 
translation(ko): update Korean menu

closes: #14683

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agotranslation(is): update Icelandic menu
Oleg Zadorozhnyi [Thu, 2 May 2024 19:56:45 +0000 (21:56 +0200)] 
translation(is): update Icelandic menu

closes: #14685

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agotranslation(CZ): update Czech menu
Oleg Zadorozhnyi [Thu, 2 May 2024 19:44:56 +0000 (21:44 +0200)] 
translation(CZ): update Czech menu

closes: #14704

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agotranslation(af): update Afrikaans menu
Oleg Zadorozhnyi [Thu, 2 May 2024 19:37:21 +0000 (21:37 +0200)] 
translation(af): update Afrikaans menu

closes: #14706

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agotranslation(de): update German menu
Oleg Zadorozhnyi [Thu, 2 May 2024 11:14:13 +0000 (13:14 +0200)] 
translation(de): update German menu

closes: #14702

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0390: filetype: inko files are not recognized v9.1.0390
Yorick Peterse [Thu, 2 May 2024 11:11:44 +0000 (13:11 +0200)] 
patch 9.1.0390: filetype: inko files are not recognized

Problem:  filetype: inko files are not recognized
Solution: Detect '*.inko' as ink filetype
          (Yorick Peterse)

See:
- https://github.com/inko-lang/inko.vim
- https://inko-lang.org/

closes: #14699

Signed-off-by: Yorick Peterse <git@yorickpeterse.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0389: filetype: templ files are not recognized v9.1.0389
tris203 [Thu, 2 May 2024 11:08:25 +0000 (13:08 +0200)] 
patch 9.1.0389: filetype: templ files are not recognized

Problem:  filetype: templ files are not recognized
Solution: Detect '*.templ' files as filetype templ
          (Tristan Knight)

See:
- https://github.com/a-h/templ
- https://templ.guide/

closes: #14697

Signed-off-by: tris203 <admin@snappeh.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0388: cursor() and getregion() don't handle v:maxcol well v9.1.0388
zeertzjq [Thu, 2 May 2024 11:06:24 +0000 (13:06 +0200)] 
patch 9.1.0388: cursor() and getregion() don't handle v:maxcol well

Problem:  cursor() and getregion() don't handle v:maxcol well.
Solution: Add special handling for v:maxcol like setpos() does.
          (zeertzjq)

closes: #14698

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0387: Vim9: null value tests not sufficient v9.1.0387
Yegappan Lakshmanan [Thu, 2 May 2024 11:02:36 +0000 (13:02 +0200)] 
patch 9.1.0387: Vim9: null value tests not sufficient

Problem:  Vim9: null value tests not sufficient
Solution: Add a more comprehensive test for null values
          (Yegappan Lakshmanan)

closes: #14701

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agotranslation(ca): update Catalan menu
Oleg Zadorozhnyi [Thu, 2 May 2024 10:58:51 +0000 (12:58 +0200)] 
translation(ca): update Catalan menu

closes: #14705

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0386: filetype: stylus files not recognized v9.1.0386
Philip H [Wed, 1 May 2024 16:42:11 +0000 (18:42 +0200)] 
patch 9.1.0386: filetype: stylus files not recognized

Problem:  filetype: stylus files not recognized
Solution: Detect '*.styl' and '*.stylus' as stylus filetype,
          include indent, filetype and syntax plugin
          (Philip H)

closes: #14656

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agotranslation(es): update spanish menu localization
Oleg Zadorozhnyi [Wed, 1 May 2024 16:08:34 +0000 (18:08 +0200)] 
translation(es): update spanish menu localization

closes: #14690

Signed-off-by: Oleg Zadorozhnyi <lesorubshayan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(doc): regenerate helptags (#14695)
Philip H [Wed, 1 May 2024 14:52:40 +0000 (16:52 +0200)] 
runtime(doc): regenerate helptags (#14695)

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0385: Vim9: crash with null_class and null_object v9.1.0385
Yegappan Lakshmanan [Wed, 1 May 2024 09:44:17 +0000 (11:44 +0200)] 
patch 9.1.0385: Vim9: crash with null_class and null_object

Problem:  Vim9: crash with null_class and null_object
          (Aliaksei Budavei)
Solution: Handle null_class and null_object correctly
          (Yegappan Lakshmanan)

fixes: #14678
closes: #14681

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(doc): Add tags about lazyloading of menu (#14688)
K.Takata [Wed, 1 May 2024 09:35:32 +0000 (18:35 +0900)] 
runtime(doc): Add tags about lazyloading of menu (#14688)

Close #14672

Also add the `g:` prefix.

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0384: tests: vt420 terminfo entry may not be found v9.1.0384
Christian Brabandt [Tue, 30 Apr 2024 18:45:09 +0000 (20:45 +0200)] 
patch 9.1.0384: tests: vt420 terminfo entry may not be found

Problem:  tests: vt420 terminfo entry may not be found
          (Shane-XB-Qian)
Solution: check existence of terminfo vt420 and infocmp command

related: #14595
closes: #14677

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0383: filetype: .out files recognized as tex files v9.1.0383
shane.xb.qian [Tue, 30 Apr 2024 18:35:53 +0000 (20:35 +0200)] 
patch 9.1.0383: filetype: .out files recognized as tex files

Problem:  filetype: .out files recognized as tex files
Solution: Do not set an explicit filetype until it is clear what this
          should be (shane.xb.qian)

closes: #14670

Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0382: filetype: Kbuild files are not recognized v9.1.0382
Bruno BELANYI [Tue, 30 Apr 2024 18:16:01 +0000 (20:16 +0200)] 
patch 9.1.0382: filetype: Kbuild files are not recognized

Problem:  Kbuild files are not recognized.
Solution: Detect Kbuild files as make files.
          (Bruno Belanyi)

closes: #14676

Signed-off-by: Bruno Belanyi <bruno@belanyi.fr>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0381: cbuffer and similar commands don't accept a range v9.1.0381
Christian Brabandt [Mon, 29 Apr 2024 18:36:49 +0000 (20:36 +0200)] 
patch 9.1.0381: cbuffer and similar commands don't accept a range

Problem:  cbuffer and similar quickfix and locationlist commands don't
          accept a range, even so it is documented they should
          (ilan-schemoul, after 8.1.1241)
Solution: Define ex commands with ADDR_LINES instead of ADDR_OTHER

fixes: #14638
closes: #14657

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(java): Improve the recognition of the "indent" method declarations (#14659)
Aliaksei Budavei [Mon, 29 Apr 2024 18:24:35 +0000 (21:24 +0300)] 
runtime(java): Improve the recognition of the "indent" method declarations (#14659)

There is a flaw in the current implementation that has been
exacerbated around v5.2.  It lies in the recognition of all
three indentation styles simultaneously: a tab, two space,
and eight space character(s).  With it, it is not uncommon
to misidentify various constructs as method declarations
when they belong to two-space indented members and other
blocks of a type and are offset at eight space characters or
a tab from the start of the line.

For example,

------------------------------------------------------------
class Test
{
  static String hello() { return "hello"; }

  public static void main(String[] args)
  {
    try {
      if (args.length > 0) {
        // FIXME: eight spaces.
        System.out.println(args[0]);
      } else {
        // FIXME: a tab.
System.out.println(hello());
      }
    } catch (Exception e) {
      throw new Error(e);
    }
  }
}
------------------------------------------------------------

------------------------------------------------------------
:let g:java_highlight_functions = 'indent'
:doautocmd Syntax
------------------------------------------------------------

A better approach is to pick an only indentation style out
of all supported styles (so either two spaces _or_ eight
spaces _or_ a tab).  Note that tabs and spaces can still be
mixed, only the leading tab or the leading run of spaces
matters for the recognition.  And there is no reason to not
complement the set of valid styles with any number of spaces
from 1 to 8, inclusively.

Please proceed with the necessary change as follows:

- rename from "indent" to "indent2" for a 2-space run;
- rename from "indent" to "indent8" for an 8-space run;
- continue to have "indent" for a tab run;
- define an "indent" variable with a suffix number denoting
  the preferred amount of indentation for any other run of
  spaces [1-8].

As before, this alternative style of recognition of method
declarations still does not prescribe naming conventions and
still cannot recognise method declarations in nested types
that are conventionally indented.

The proposed changes also follow suit of "style" in stopping
the claiming of constructor and enum constant declarations.

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(doc): Fix a typo in usr_30.txt
UM-Li [Mon, 29 Apr 2024 18:22:10 +0000 (20:22 +0200)] 
runtime(doc): Fix a typo in usr_30.txt

closes: #14662

Signed-off-by: UM-Li <um-li@tuta.io>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(jq): remove undefined var s:save_cpoptions and add include setting
GodFather [Mon, 29 Apr 2024 18:16:29 +0000 (20:16 +0200)] 
runtime(jq): remove undefined var s:save_cpoptions and add include setting

closes: #14661
closes: #14663

Co-authored-by: itchyny <itchyny@cybozu.co.jp>
Signed-off-by: GodFather <vito.blog@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(asm): missing setlocal in indent plugin (#14658)
Marc Sven Schulte [Sun, 28 Apr 2024 19:43:03 +0000 (21:43 +0200)] 
runtime(asm): missing setlocal in indent plugin (#14658)

Signed-off-by: Marc Sven Schulte <167623652+msschulte@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0380: Calculating line height for unnecessary amount of lines v9.1.0380
Luuk van Baal [Sun, 28 Apr 2024 14:24:02 +0000 (16:24 +0200)] 
patch 9.1.0380: Calculating line height for unnecessary amount of lines

Problem:  Calculating line height for unnecessary amount of lines with
          half-page scrolling (zhscn, after 9.1.0280)
Solution: Replace "limit_winheight" argument with higher resolution
          "max" argument to which to limit the calculated line height
          in plines_m_win() to (Luuk van Baal)

fixes: #14650
closes: #14652

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(ssa): improve syntax file performance (#14654)
ObserverOfTime [Sun, 28 Apr 2024 14:22:55 +0000 (17:22 +0300)] 
runtime(ssa): improve syntax file performance (#14654)

fixes: #14653

Signed-off-by: ObserverOfTime <chronobserver@disroot.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0379: There are a few typos v9.1.0379
zeertzjq [Sun, 28 Apr 2024 14:20:55 +0000 (16:20 +0200)] 
patch 9.1.0379: There are a few typos

Problem:  There are a few typos
Solution: Fix them (zeertzjq)

closes: #14655

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0378: Vim9: no comments allowed after class vars v9.1.0378
Yegappan Lakshmanan [Sun, 28 Apr 2024 07:54:09 +0000 (09:54 +0200)] 
patch 9.1.0378: Vim9: no comments allowed after class vars

Problem:  Vim9: no comments allowed after class vars
          (Christian Robinson, after 9.1.376)
Solution: Allow trailing comments after class vars
          (Yegappan Lakshmanan)

closes: #14651

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(doc): CI: remove trailing white space in documentation
Christian Brabandt [Sat, 27 Apr 2024 10:01:15 +0000 (12:01 +0200)] 
runtime(doc): CI: remove trailing white space in documentation

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0377: Formatting text wrong when 'breakindent' is set v9.1.0377
Christian Brabandt [Sat, 27 Apr 2024 09:55:08 +0000 (11:55 +0200)] 
patch 9.1.0377: Formatting text wrong when 'breakindent' is set

Problem:  formatting text wrong when 'breakindent' is set
          (Gary Johnson)
Solution: temporarily disable 'breakindent' option when formatting text,
          so that the breakindent is not wrongly taken into account for
          the line length

fixes: #14630
closes: #14637

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(debversions): Add oracular (24.10) as Ubuntu release name
Simon Quigley [Sat, 27 Apr 2024 09:51:45 +0000 (11:51 +0200)] 
runtime(debversions): Add oracular (24.10) as Ubuntu release name

closes: #14645

Signed-off-by: Simon Quigley <simon@tsimonq2.net>
Signed-off-by: James McCoy <jamessan@jamessan.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0376: Vim9: Trailing commands after class/enum keywords ignored v9.1.0376
Yegappan Lakshmanan [Sat, 27 Apr 2024 09:36:12 +0000 (11:36 +0200)] 
patch 9.1.0376: Vim9: Trailing commands after class/enum keywords ignored

Problem:  Vim9: Trailing commands after class/enum keywords ignored
Solution: Remove EX_TRLBAR keyword from command definition
          (Yegappan Lakshmanan)

closes: #14649

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0375: tests: 1-second delay after Test_BufEnter_botline() v9.1.0375
zeertzjq [Sat, 27 Apr 2024 09:33:24 +0000 (11:33 +0200)] 
patch 9.1.0375: tests: 1-second delay after Test_BufEnter_botline()

Problem:  tests: 1-second delay after Test_BufEnter_botline()
          (after v9.1.0374)
Solution: Wipe the created buffers (zeertzjq).

closes: #14647

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(doc): update helptags for jq syntax (#14646)
Philip H [Sat, 27 Apr 2024 09:31:53 +0000 (11:31 +0200)] 
runtime(doc): update helptags for jq syntax (#14646)

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(jq): include syntax, ftplugin and compiler plugin
Vito [Fri, 26 Apr 2024 20:36:20 +0000 (22:36 +0200)] 
runtime(jq): include syntax, ftplugin and compiler plugin

closes: #14619

Signed-off-by: Vito <vito.blog@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(doc): fix typo synconcealend -> synconcealed (#14644)
Philip H [Fri, 26 Apr 2024 17:57:20 +0000 (19:57 +0200)] 
runtime(doc): fix typo synconcealend -> synconcealed (#14644)

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(comment): include a simple comment toggling plugin
Maxim Kim [Fri, 26 Apr 2024 17:53:13 +0000 (19:53 +0200)] 
runtime(comment): include a simple comment toggling plugin

fixes #14626
closes: #14634

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(doc): fix typo
Christian Brabandt [Fri, 26 Apr 2024 16:56:21 +0000 (18:56 +0200)] 
runtime(doc): fix typo

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0374: wrong botline in BufEnter v9.1.0374
Jaehwang Jung [Fri, 26 Apr 2024 16:48:48 +0000 (18:48 +0200)] 
patch 9.1.0374: wrong botline in BufEnter

Problem:  When :edit an existing buffer, line('w$') may return a
          wrong result.
Solution: Reset w_valid in curwin_init() (Jaehwang Jung)

`do_ecmd()` reinitializes the current window (`curwin_init()`) whose
`w_valid` field may have `VALID_BOTLINE` set. Resetting `w_botline`
without marking it as invalid makes subsequent `validate_botline()`
calls a no-op, thus resulting in wrong `line('w$')` value.

closes: #14642

Signed-off-by: Jaehwang Jung <tomtomjhj@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoCI: ubuntu-toolchain-r/test repository will be removed (#14641)
Philip H [Fri, 26 Apr 2024 16:45:41 +0000 (18:45 +0200)] 
CI: ubuntu-toolchain-r/test repository will be removed (#14641)

* CI: ubuntu-toolchain-r/test repository will be removed

The ubuntu-toolchain-r/test PPA will be removed from Ubuntu images.
The images rollout process will start on May 6 and take 3-4 days.
Mitigation ways

The repository can still be added manually in runtime by calling to following commands:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y

* fixup: add a note what this repo is for

Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(doc): clarify syntax vs matching mechanism
Christian Brabandt [Fri, 26 Apr 2024 16:42:59 +0000 (18:42 +0200)] 
runtime(doc): clarify syntax vs matching mechanism

fixes: #14643

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(asm): fix undefined variable in indent plugin
Christian Brabandt [Thu, 25 Apr 2024 20:42:05 +0000 (22:42 +0200)] 
runtime(asm): fix undefined variable in indent plugin

It's an indent script, so we need to set the  b:undo_indent variable
instead of the b:undo_ftplugin var.

fixes: #14602

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