]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
14 months agoruntime(comment): commenting might be off by one column
Konfekt [Tue, 1 Oct 2024 18:02:15 +0000 (20:02 +0200)] 
runtime(comment): commenting might be off by one column

getpos columns start at 1 and not 0 as do arrays

closes: #15774

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0753: Wrong display when typing in diff mode with 'smoothscroll' v9.1.0753
zeertzjq [Tue, 1 Oct 2024 17:35:47 +0000 (19:35 +0200)] 
patch 9.1.0753: Wrong display when typing in diff mode with 'smoothscroll'

Problem:  Wrong display when typing in diff mode with 'smoothscroll'.
Solution: Use adjust_plines_for_skipcol() (zeertzjq).

closes: #15776

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0752: can set 'cedit' to an invalid value v9.1.0752
Milly [Tue, 1 Oct 2024 17:30:20 +0000 (19:30 +0200)] 
patch 9.1.0752: can set 'cedit' to an invalid value

Problem:  can set cedit to an invalid value
Solution: Check that the value is a valid key name
          (Milly)

closes: #15778

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(doc): add `usr` tag to usr_toc.txt
dundargoc [Tue, 1 Oct 2024 17:24:02 +0000 (19:24 +0200)] 
runtime(doc): add `usr` tag to usr_toc.txt

When typing `:h usr` it redirects to usr_01.txt, but I'd argue
usr_toc.txt is more useful as you can see an overview of all manuals.
When I usr `:h usr` I personally always intend to go to `usr_toc`.

closes: #15779

Signed-off-by: dundargoc <gocdundar@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0751: Error callback for term_start() not used v9.1.0751
Christian Brabandt [Mon, 30 Sep 2024 19:29:43 +0000 (21:29 +0200)] 
patch 9.1.0751: Error callback for term_start() not used

Problem:  Error callback for term_start() not used
          (darkseid-is)
Solution: attach pipe to stderr if an error callback exists

fixes: #15665
closes: #15729

Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0750: there are some Win9x legacy references v9.1.0750
Nir Lichtman [Mon, 30 Sep 2024 17:42:28 +0000 (19:42 +0200)] 
patch 9.1.0750: there are some Win9x legacy references

Problem:  there are some Win9x legacy references
Solution: Remove those mentions (Nir Lichtman)

closes: #15730

Signed-off-by: Nir Lichtman <nir@lichtman.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(java): Recognise the CommonMark form (///) of Javadoc comments
Aliaksei Budavei [Mon, 30 Sep 2024 17:40:04 +0000 (19:40 +0200)] 
runtime(java): Recognise the CommonMark form (///) of Javadoc comments

Complement "g:java_ignore_javadoc" with "g:java_ignore_html"
and "g:java_ignore_markdown" to allow selectively disabling
the recognition of HTML and CommonMark respectively.

(Note that this is not a preview feature.)

======================== LIMITATION ========================

According to the syntactical details of JEP 467:

> Any leading whitespace and the three initial / characters
> are removed from each line.
>
> The lines are shifted left, by removing leading whitespace
> characters, until the non-blank line with the least
> leading whitespace has no remaining leading whitespace.
>
> Additional leading whitespace and any trailing whitespace
> in each line is preserved, because it may be significant.

the following example:
------------------------------------------------------------
///    A summary sentence.
///     A list:
///      - Item A.
///     - Item B.
///
///     Some code span, starting here `
///      1 + 2 ` and ending at the previous \`.
------------------------------------------------------------

should be interpreted as if it were written thus:
------------------------------------------------------------
///A summary sentence.
/// A list:
///  - Item A.
/// - Item B.
///
/// Some code span, starting here `
///  1 + 2 ` and ending at the previous \`.
------------------------------------------------------------

Since automatic line rewriting will not be pursued, parts of
such comments having significant whitespace may be ‘wrongly’
highlighted.  For convenience, a &fex function is defined to
‘correct’ it: g:javaformat#RemoveCommonMarkdownWhitespace()
(:help ft-java-plugin).

References:
https://openjdk.org/jeps/467
https://spec.commonmark.org/0.31.2

closes: #15740

Co-authored-by: Tim Pope <code@tpope.net>
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0749: filetype: http files not recognized v9.1.0749
Riley Bruins [Mon, 30 Sep 2024 17:34:04 +0000 (19:34 +0200)] 
patch 9.1.0749: filetype: http files not recognized

Problem:  filetype: http files not recognized
Solution: detect '*.http' as http filetype, include
          http filetype plugin (Riley Bruins)

Based on the specification found
[here](https://github.com/JetBrains/http-request-in-editor-spec/blob/master/spec.md)

closes: #15762

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(comment): fix syntax error
Konfekt [Mon, 30 Sep 2024 17:30:34 +0000 (19:30 +0200)] 
runtime(comment): fix syntax error

fixes: #15767
closes: #15770

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoCI: uploading failed screendump tests does not work Cirrus
Aliaksei Budavei [Sun, 29 Sep 2024 15:29:39 +0000 (17:29 +0200)] 
CI: uploading failed screendump tests does not work Cirrus

Problem:  CI: uploading failed screendump tests does not work Cirrus
          (after: e019f3626d51f3f71)
Solution: Do not use the $CIRRUS_WORKING_DIR env variable

related: #15695

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0748: :keep* commmands are sometimes misidentified as :k v9.1.0748
Doug Kearns [Sun, 29 Sep 2024 15:17:41 +0000 (17:17 +0200)] 
patch 9.1.0748: :keep* commmands are sometimes misidentified as :k

Problem:  The :keep{alt,jumps,marks,patterns} commmands are sometimes
          misidentified as :k.
Solution: Make sure one_letter_cmd() only returns true for :k and not
          other :keep* commands (Doug Kearns).

This currently manifests as missing completion for :keep* commands and
incorrect results from fullcommand().

E.g., fullcommand("keepmarks") returns "k" rather than "keepmarks".

The correct command, however, is executed as command modifiers are
handled specially in do_one_cmd() rather than using find_ex_command().

Fix exists(':k') so that it returns 2 for a full match.

closes: #15742

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(indent): allow matching negative numbers for gnu indent config file
John M Devin [Sun, 29 Sep 2024 09:18:42 +0000 (11:18 +0200)] 
runtime(indent): allow matching negative numbers for gnu indent config file

Some gnu indent options take negative numbers (e.g. --indent-label).
Add matching for an optional single '-' before the number.

closes: #15754

Signed-off-by: John M Devin <john.m.devin@gmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(comment): add gC mapping to (un)comment rest of line
Konfekt [Sun, 29 Sep 2024 08:46:41 +0000 (10:46 +0200)] 
runtime(comment): add gC mapping to (un)comment rest of line

fixes: #15727
closes: #15737

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0747: various typos in repo found v9.1.0747
zeertzjq [Sun, 29 Sep 2024 08:37:47 +0000 (10:37 +0200)] 
patch 9.1.0747: various typos in repo found

Problem:  various typos in repo found
Solution: Fix typos (zeertzjq)

closes: #15749

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0746: tests: Test_halfpage_longline() fails on large terminals v9.1.0746
zeertzjq [Sun, 29 Sep 2024 08:14:32 +0000 (10:14 +0200)] 
patch 9.1.0746: tests: Test_halfpage_longline() fails on large terminals

Problem:  Test_halfpage_longline() fails on large terminals
          (lazypingu)
Solution: Use a window with known width (zeertzjq).

fixes: #15755
closes: #15756

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(doc): reformat gnat example
hokorobi [Sun, 29 Sep 2024 08:10:51 +0000 (10:10 +0200)] 
runtime(doc): reformat gnat example

closes: #15758

Signed-off-by: hokorobi <hokorobi.hokorobi@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(doc): reformat ada_standard_types section
hokorobi [Sun, 29 Sep 2024 08:08:40 +0000 (10:08 +0200)] 
runtime(doc): reformat ada_standard_types section

closes: #15759

Signed-off-by: hokorobi <hokorobi.hokorobi@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0745: filetype: bun and deno history files not recognized v9.1.0745
Wu, Zhenyu [Sun, 29 Sep 2024 08:03:19 +0000 (10:03 +0200)] 
patch 9.1.0745: filetype: bun and deno history files not recognized

Problem:  filetype: bun and deno history files not recognized
Solution: detect '.bun_repl_history' and 'deno_history.txt' as
          javascript filetype (Wu, Zhenyu)

closes: #15761

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(glvs): Correct the tag name of glvs-autoinstal
Aliaksei Budavei [Sun, 29 Sep 2024 07:50:52 +0000 (09:50 +0200)] 
runtime(glvs): Correct the tag name of glvs-autoinstal

closes: #15748

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(doc): include short form for :earlier/:later
Christian Brabandt [Sun, 29 Sep 2024 07:48:19 +0000 (09:48 +0200)] 
runtime(doc): include short form for :earlier/:later

fixes: #15757

Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(doc): remove completed TODO
Ben Scuron [Sun, 29 Sep 2024 07:42:24 +0000 (09:42 +0200)] 
runtime(doc): remove completed TODO

Completed in commit: c81dfaa69ceec9f6b88caf1dcdf2f859d4fcae47
(Patch 9.0.1621)

closes: #15763

Signed-off-by: Ben Scuron <bscuron19@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0744: filetype: notmuch configs are not recognised v9.1.0744
Julio B [Thu, 26 Sep 2024 14:22:34 +0000 (16:22 +0200)] 
patch 9.1.0744: filetype: notmuch configs are not recognised

Problem:  filetype: notmuch configs are not recognised
Solution: Detect more notmuch profile configuration files
          as dosini filetype (Julio B)

Reference:
https://notmuchmail.org/doc/latest/man1/notmuch-config.html#configuration

closes: #15744

Signed-off-by: Julio B <julio.bacel@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0743: diff mode does not handle overlapping diffs correctly v9.1.0743
Yukihiro Nakadaira [Thu, 26 Sep 2024 14:19:42 +0000 (16:19 +0200)] 
patch 9.1.0743: diff mode does not handle overlapping diffs correctly

Problem:  diff mode does not handle overlapping diffs correctly
Solution: correct the logic to handle overlapping blocks
          (Yukihiro Nakadaira)

Vim merges overlapped diff blocks and it doesn't work expectedly
in some situation.

closes: #15735

Signed-off-by: Yukihiro Nakadaira <yukihiro.nakadaira@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(glvs): fix a few issues
GuyBrush [Thu, 26 Sep 2024 14:14:08 +0000 (16:14 +0200)] 
runtime(glvs): fix a few issues

Fix errors on #15640 that:
* led to use the wrong vim runtime directory name if using powershell or
  bash on windows.
* use a wrong pattern to detect the users runtime dir
* allow to use global variables to specify un-archive commands

closes: #15722

Signed-off-by: GuyBrush <miguel.barro@live.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(doc): Fix typo in :help :command-modifiers
Doug Kearns [Thu, 26 Sep 2024 14:05:02 +0000 (16:05 +0200)] 
runtime(doc): Fix typo in :help :command-modifiers

closes: #15734

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0742: getcmdprompt() implementation can be improved v9.1.0742
h-east [Thu, 26 Sep 2024 14:01:57 +0000 (16:01 +0200)] 
patch 9.1.0742: getcmdprompt() implementation can be improved

Problem:  getcmdprompt() implementation can be improved
Solution: Improve and simplify it (h-east)

closes: #15743

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(docs): update `:set?` command behavior table
Milly [Thu, 26 Sep 2024 13:54:43 +0000 (15:54 +0200)] 
runtime(docs): update `:set?` command behavior table

closes: #15746

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(doc): update vim90 to vim91 in docs
mikoto2000 [Thu, 26 Sep 2024 13:52:22 +0000 (15:52 +0200)] 
runtime(doc): update vim90 to vim91 in docs

closes: #15747

Signed-off-by: mikoto2000 <mikoto2000@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(doc): fix typo in :h dos-colors
Christian Brabandt [Tue, 24 Sep 2024 14:35:57 +0000 (16:35 +0200)] 
runtime(doc): fix typo in :h dos-colors

related: #15723
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0741: No way to get prompt for input()/confirm() v9.1.0741
Shougo Matsushita [Mon, 23 Sep 2024 18:34:47 +0000 (20:34 +0200)] 
patch 9.1.0741: No way to get prompt for input()/confirm()

Problem:  No way to get prompt for input()/confirm()
Solution: add getcmdprompt() function (Shougo Matsushita)
          (Shougo Matsushita)

closes: #15667

Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(doc): fix typo in version9.txt nrformat -> nrformats
hseg [Mon, 23 Sep 2024 18:13:49 +0000 (20:13 +0200)] 
runtime(doc): fix typo in version9.txt nrformat -> nrformats

This blocks K from finding the keyword

closes: #15726

Signed-off-by: hseg <gesh@gesh.uni.cx>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(rmd,rrst): 'fex' option not properly restored
John M Devin [Mon, 23 Sep 2024 18:09:33 +0000 (20:09 +0200)] 
runtime(rmd,rrst): 'fex' option not properly restored

Add 'fex' to b:undo_ftplugin variable

closes: #15728

Signed-off-by: John M Devin <john.m.devin@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(netrw): remove extraneous closing bracket
Peter Aronoff [Sun, 22 Sep 2024 09:29:40 +0000 (11:29 +0200)] 
runtime(netrw): remove extraneous closing bracket

fixes: #15717
closes: #15718

Signed-off-by: Peter Aronoff <peter@aronoff.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0740: incorrect internal diff with empty file v9.1.0740
Yukihiro Nakadaira [Sun, 22 Sep 2024 09:26:13 +0000 (11:26 +0200)] 
patch 9.1.0740: incorrect internal diff with empty file

Problem:  incorrect internal diff with an empty file
Solution: Set pointer to NULL, instead of using an empty line file
          (Yukihiro Nakadaira)

When using internal diff, empty file is read as one empty line file.
So result differs from external diff.

closes: #15719

Signed-off-by: Yukihiro Nakadaira <yukihiro.nakadaira@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0739: [security]: use-after-free in ex_getln.c v9.1.0739
John Marriott [Sat, 21 Sep 2024 09:39:02 +0000 (11:39 +0200)] 
patch 9.1.0739: [security]: use-after-free in ex_getln.c

Problem:  [security]: use-after-free in ex_getln.c
Solution: free pointer p a bit later (John Marriott)

closes: #15712

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(filetype): tests: Test_filetype_detection() fails
Christian Brabandt [Sat, 21 Sep 2024 09:23:07 +0000 (11:23 +0200)] 
runtime(filetype): tests: Test_filetype_detection() fails

Problem:  tests: Test_filetype_detection() fails (after 9.1.0738)
Solution: Add missing filetype detect patterns for *.SYSx and *.MODx

Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(dist): do not output a message if executable is not found
Christian Brabandt [Fri, 20 Sep 2024 20:26:56 +0000 (22:26 +0200)] 
runtime(dist): do not output a message if executable is not found

closes: #15705

Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0738: filetype: rapid files are not recognized v9.1.0738
KnoP-01 [Fri, 20 Sep 2024 20:19:45 +0000 (22:19 +0200)] 
patch 9.1.0738: filetype: rapid files are not recognized

Problem:  filetype: rapid files are not recognized
Solution: detect '*.sysx' and '*.modx' as rapid filetype
          (KnoP-01)

closes: #15669

Signed-off-by: KnoP-01 <knosowski@graeffrobotics.de>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(modconf): remove erroneous :endif in ftplugin
zeertzjq [Fri, 20 Sep 2024 19:47:19 +0000 (21:47 +0200)] 
runtime(modconf): remove erroneous :endif in ftplugin

regression introduced in f86568f91848ece0c5da

closes: #15704

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(lyrics): support multiple timestamps in syntax script
ObserverOfTime [Fri, 20 Sep 2024 19:41:17 +0000 (21:41 +0200)] 
runtime(lyrics): support multiple timestamps in syntax script

Problem:  Multiple timestamps in the same line were not highlighted
Solution: Adapt the syntax to support multiple timestamps

fixes: #15703
closes: #15707

Signed-off-by: ObserverOfTime <chronobserver@disroot.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(java): Optionally recognise _module_ import declarations
Aliaksei Budavei [Fri, 20 Sep 2024 19:37:46 +0000 (21:37 +0200)] 
runtime(java): Optionally recognise _module_ import declarations

Define "g:java_syntax_previews" and include number 476 in
its list to enable this recognition:
------------------------------------------------------------
        let g:java_syntax_previews = [476]
------------------------------------------------------------

Reference:
https://openjdk.org/jeps/476

closes: #15709

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(vim): Update base-syntax, improve folding function matches
Doug Kearns [Thu, 19 Sep 2024 17:51:59 +0000 (19:51 +0200)] 
runtime(vim): Update base-syntax, improve folding function matches

- Allow function command modifiers.
- Match function bodies starting with empty lines.

Command modifiers reported by @Konfekt.

fixes #15671
closes: #15674

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoCI: upload failed screendump tests also for Cirrus
Aliaksei Budavei [Thu, 19 Sep 2024 17:48:02 +0000 (19:48 +0200)] 
CI: upload failed screendump tests also for Cirrus

related: #15695

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0737: tests: screendump tests may require a bit more time v9.1.0737
Aliaksei Budavei [Thu, 19 Sep 2024 17:43:14 +0000 (19:43 +0200)] 
patch 9.1.0737: tests: screendump tests may require a bit more time

Problem:  Asynchronous terminal jobs occassionally require more time
          to complete and redraw the window
Solution: increase the sleep value from 10 to 50 milliseconds
          (Aliaksei Budavei)

closes: #15695

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(misc): simplify keywordprg in various ftplugins
Konfekt [Thu, 19 Sep 2024 17:34:40 +0000 (19:34 +0200)] 
runtime(misc): simplify keywordprg in various ftplugins

closes: #15696

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(java): Optionally recognise all primitive constants in _switch-case_ labels
Aliaksei Budavei [Thu, 19 Sep 2024 16:22:58 +0000 (18:22 +0200)] 
runtime(java): Optionally recognise all primitive constants in _switch-case_ labels

Define "g:java_syntax_previews" and include number 455 in
its list to enable this recognition:
------------------------------------------------------------
let g:java_syntax_previews = [455]
------------------------------------------------------------

Reference:
https://openjdk.org/jeps/455

closes: #15698

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(zsh,sh): set and unset compiler in ftplugin
Konfekt [Thu, 19 Sep 2024 16:19:43 +0000 (18:19 +0200)] 
runtime(zsh,sh): set and unset compiler in ftplugin

closes: #15699

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(netrw): using inefficient highlight pattern for 'mf'
yasuda [Thu, 19 Sep 2024 16:09:51 +0000 (18:09 +0200)] 
runtime(netrw): using inefficient highlight pattern for 'mf'

Fixes E872 too many '(' in highlight pattern for `mf` selection

fixup for #15551
closes: #15700

Signed-off-by: yasuda <yasuda@kyoto-sr.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0736: Unicode tables are outdated v9.1.0736
Christian Brabandt [Tue, 17 Sep 2024 18:24:56 +0000 (20:24 +0200)] 
patch 9.1.0736: Unicode tables are outdated

Problem:  Unicode tables are outdated
Solution: Update Unicode tables to v16

closes: #15693

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0735: filetype: salt files are not recognized v9.1.0735
Gregory Anders [Tue, 17 Sep 2024 18:16:37 +0000 (20:16 +0200)] 
patch 9.1.0735: filetype: salt files are not recognized

Problem:  filetype: salt files are not recognized
Solution: Detect '*.sls' files as filetype salt,
          include a syntax script (Gregory Anders)

closes: #15689

Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0734: filetype: jinja files are not recognized v9.1.0734
Gregory Anders [Tue, 17 Sep 2024 18:12:47 +0000 (20:12 +0200)] 
patch 9.1.0734: filetype: jinja files are not recognized

Problem:  filetype: jinja files are not recognized
Solution: detect '*.jinja' files a jinja filetype,
          include jinja syntax script (Gregory Anders)

related: #15689

Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(zathurarc): add double-click-follow to syntax script
Wu, Zhenyu [Tue, 17 Sep 2024 17:50:52 +0000 (19:50 +0200)] 
runtime(zathurarc): add double-click-follow to syntax script

closes: #15688

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
15 months agotranslation(ru): Updated messages translation
RestorerZ [Tue, 17 Sep 2024 17:41:05 +0000 (19:41 +0200)] 
translation(ru): Updated messages translation

closes: #15690
Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agotranslation(it): updated xxd man page
Antonio Giovanni Colombo [Tue, 17 Sep 2024 17:12:03 +0000 (19:12 +0200)] 
translation(it): updated xxd man page

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Antonio Giovanni Colombo <azc100@gmail.com>
15 months agotranslation(ru): updated xxd man page
RestorerZ [Tue, 17 Sep 2024 17:03:16 +0000 (19:03 +0200)] 
translation(ru): updated xxd man page

closes: #15692

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0733: keyword completion does not work with fuzzy v9.1.0733
glepnir [Sun, 15 Sep 2024 18:06:28 +0000 (20:06 +0200)] 
patch 9.1.0733: keyword completion does not work with fuzzy

Problem:  keyword completion does not work with fuzzy
          (egesip)
Solution: handle ctrl_x_mode_normal() specifically
          (glepnir)

fixes: #15412
closes: #15424

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0732: xxd: cannot use -b and -i together v9.1.0732
Andre Chang [Sun, 15 Sep 2024 18:03:05 +0000 (20:03 +0200)] 
patch 9.1.0732: xxd: cannot use -b and -i together

Problem:  xxd: cannot use -b and -i together
          (Irgendwer)
Solution: implement the missing changes
          (Andre Chang)

fixes: #15362
closes: #15661

Signed-off-by: Andre Chang <andre@augmentcode.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(java): Highlight javaConceptKind modifiers with StorageClass
Aliaksei Budavei [Sun, 15 Sep 2024 17:53:50 +0000 (19:53 +0200)] 
runtime(java): Highlight javaConceptKind modifiers with StorageClass

Stop assigning by default the NonText highlighting group for
javaConceptKind modifiers since its colour is hardly
distinguishable from a background colour for a range of
colour schemes.

fixes #15237
related #15238
closes: #15664

Co-authored-by: Dexter Gaon-Shatford <dexter@gaonshatford.ca>
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(doc): reword and reformat how to use defaults.vim
Max Coplan [Sun, 15 Sep 2024 17:40:52 +0000 (19:40 +0200)] 
runtime(doc): reword and reformat how to use defaults.vim

closes: #15663
closes: #15668

Signed-off-by: Max Coplan <mchcopl@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0731: inconsistent case sensitive extension matching v9.1.0731
Evgeni Chasnovski [Sun, 15 Sep 2024 17:23:25 +0000 (19:23 +0200)] 
patch 9.1.0731: inconsistent case sensitive extension matching

Problem:  inconsistent case sensitive extension matching
Solution: unify case sensitive extension matching (Evgeni Chasnovski).

There are different approaches of how extensions are matched with
respect to case sensitivity. In particular, '\c' flag is used in pattern
whereas in most places case sensitive matching is guarded behind
`has("fname_case")` condition.

Replace all instances of '\c' with an explicit case sensitive pattern
variants guarded by `has("fname_case")`. Strictly speaking, this is a
breaking change because only two (most common and prevailingly tested)
variants are now matched: upper first letter and upper all letters.

closes: #15672

Signed-off-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(vim): Update base-syntax, match Vim9 bool/null literal args to :if/:while...
Doug Kearns [Sun, 15 Sep 2024 17:21:18 +0000 (19:21 +0200)] 
runtime(vim): Update base-syntax, match Vim9 bool/null literal args to :if/:while/:return

Match Vim9 boolean and null literals in expression arguments of :if,
:elseif, :while and :return.

closes: #15684

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(netrw): delete confirmation not strict enough
Christian Brabandt [Sun, 15 Sep 2024 17:17:23 +0000 (19:17 +0200)] 
runtime(netrw): delete confirmation not strict enough

fixes: #15680

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0730: Crash with cursor-screenline and narrow window v9.1.0730
zeertzjq [Sat, 14 Sep 2024 08:40:29 +0000 (10:40 +0200)] 
patch 9.1.0730: Crash with cursor-screenline and narrow window

Problem:  Crash with cursor-screenline and narrow window
          (elig0n)
Solution: Don't set right_col when width2 is 0 (zeertzjq).

fixes: #15677
closes: #15678

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0729: Wrong cursor-screenline when resizing window v9.1.0729
zeertzjq [Sat, 14 Sep 2024 08:37:17 +0000 (10:37 +0200)] 
patch 9.1.0729: Wrong cursor-screenline when resizing window

Problem:  Wrong cursor-screenline when resizing window
Solution: Invalidate saved left_col and right_col when width1 or width2
          change.

closes: #15679

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0728: [security]: heap-use-after-free in garbage collection with location... v9.1.0728
zeertzjq [Sat, 14 Sep 2024 08:32:31 +0000 (10:32 +0200)] 
patch 9.1.0728: [security]: heap-use-after-free in garbage collection with location list user data

Problem:  heap-use-after-free in garbage collection with location list
          user data.
Solution: Mark user data as in use when no other window is referencing
          the location list (zeertzjq)

fixes: neovim/neovim#30371
closes: #15683

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(doc): clarify the effect of the timeout for search()-functions
Christian Brabandt [Tue, 10 Sep 2024 19:55:49 +0000 (21:55 +0200)] 
runtime(doc): clarify the effect of the timeout for search()-functions

related: #15657
related: #15404

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(idlang): update syntax script
Joe Sapp [Tue, 10 Sep 2024 19:46:54 +0000 (21:46 +0200)] 
runtime(idlang): update syntax script

closes: #15419

Signed-off-by: Joe Sapp <992873+sappjw@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(spec): Recognize epoch when making spec changelog in ftplugin
fundawang [Tue, 10 Sep 2024 19:43:05 +0000 (21:43 +0200)] 
runtime(spec): Recognize epoch when making spec changelog in ftplugin

closes: #15537

Signed-off-by: fundawang <fundawang@yeah.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(spec): add file triggers to syntax script
fundawang [Tue, 10 Sep 2024 19:31:49 +0000 (21:31 +0200)] 
runtime(spec): add file triggers to syntax script

closes: #15569

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0727: too many strlen() calls in option.c v9.1.0727
John Marriott [Tue, 10 Sep 2024 19:25:14 +0000 (21:25 +0200)] 
patch 9.1.0727: too many strlen() calls in option.c

Problem:  too many strlen() calls in option.c
Solution: refactor the code to reduce the number of strlen() calls
          (John Marriott)

closes: #15604

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(make): add compiler/make.vim to reset compiler plugin settings
Konfekt [Tue, 10 Sep 2024 19:06:22 +0000 (21:06 +0200)] 
runtime(make): add compiler/make.vim to reset compiler plugin settings

closes: #15645

Co-authored-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(java): Recognise all available standard doclet tags
Aliaksei Budavei [Tue, 10 Sep 2024 19:00:33 +0000 (21:00 +0200)] 
runtime(java): Recognise all available standard doclet tags

* Complement the tag set with @spec, {@systemProperty},
  {@summary}, @provides, @uses, @hidden, and {@index}.
* Do not hoard all tags under a single highlighting group.
* Skip over nested balanced braces in inline tags.
* Observe that tag names are case sensitive: both {@docRoot}
  and {@inheritDoc} are valid, whereas {@inheritdoc} and
  {@docroot} are not.
* In the @see tag arguments, allow for:
  - module name prefixes (e.g. java.base/java.lang.String);
  - references to arbitrary URI fragments (e.g. ##foo);
  - matching any tag variation arguments on the next line.
* Test directives and tags for Java module declarations.
* Enforce the word end for "module-info" candidates.

References:
https://bugs.openjdk.org/browse/JDK-8226279 (@spec)
https://bugs.openjdk.org/browse/JDK-8214559 ({@systemProperty})
https://bugs.openjdk.org/browse/JDK-8173425 ({@summary})
https://bugs.openjdk.org/browse/JDK-8160196 (@provides & @uses)
https://bugs.openjdk.org/browse/JDK-8073100 (@hidden)
https://bugs.openjdk.org/browse/JDK-8044243 ({@index})
https://docs.oracle.com/en/java/javase/21/docs/specs/javadoc/doc-comment-spec.html
https://github.com/openjdk/jdk/blob/jdk-21-ga/src/jdk.compiler/share/classes/com/sun/source/doctree/DocTree.java

closes: #15652

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0726: not using correct python3 API with dynamic linking v9.1.0726
Yee Cheng Chin [Tue, 10 Sep 2024 18:56:13 +0000 (20:56 +0200)] 
patch 9.1.0726: not using correct python3 API with dynamic linking

Problem:  not using correct python3 API with dynamic linking
Solution: Use stable IncRef / DecRef in Python 3 dynamic bindings
          (Yee Cheng Chin)

Previously, we were using the Py_DECREF macros even when using dynamic
linking of Python 3. This caused issues because Python's headers contain
references to internal APIs like `_Py_Dealloc` and in v8.1.2201 and
v8.2.1225 we simply hacked around the issue by manually copying the
Python header implementation to Vim and linking in the private APIs.
This is fragile and prone to break. In fact, the Py_DECREF
implementation is different in newer versions of Python meaning that
this could potentially cause memory issues.

Instead, simply use the API versions (`Py_DECREF` and `Py_INCREF`) which
are functions exposed by the Python library. They could be slightly
slower since they require a function call instead of a macro, but are
much more reliable and we should only be calling these when the Python
Vim plugins are crossing the language boundary anyway which are always
going to be slow.

Note that this only affects dynamically linked Python builds that are
not using stable ABI.

Also see #15648

closes: #15653

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(dosini): Update syntax script, spellcheck comments only
John Tobin [Tue, 10 Sep 2024 18:52:15 +0000 (20:52 +0200)] 
runtime(dosini): Update syntax script, spellcheck comments only

By default spell checking is enabled for all text, but adding
`contains=@Spell` to syntax rules restricts spell checking to those
syntax rules.  See `:help spell-syntax` for full details.

Variable names and headers are far more likely than comments to contain
spelling errors, so only enable spell checking in comments.

Introduced in https://github.com/xuhdev/syntax-dosini.vim/pull/8

cc @tobinjt

closes: #15655

Signed-off-by: John Tobin <johntobin@johntobin.ie>
Signed-off-by: Hong Xu <hong@topbug.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(doc): Revert outdated comment in completeopt's fuzzy documentation
Yee Cheng Chin [Tue, 10 Sep 2024 18:50:08 +0000 (20:50 +0200)] 
runtime(doc): Revert outdated comment in completeopt's fuzzy documentation

Originally, `:set completeopt+=fuzzy` did not affect how the candidate
list is collected in default keyword completion. A comment was added to
documentation as part of #14912 to clarify it. #15193 later changed the
fuzzy behavior to now change the candidate collection behavior as well
so the clarification in docs is now wrong. Remove them here.

closes: #15656

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0725: filetype: swiftinterface files are not recognized v9.1.0725
LosFarmosCTL [Tue, 10 Sep 2024 18:44:59 +0000 (20:44 +0200)] 
patch 9.1.0725: filetype: swiftinterface files are not recognized

Problem:  filetype: swiftinterface files are not recognized
Solution: Detect '*.swiftinterface' files as swift filetype
          (LosFarmosCTL)

closes: #15658

Signed-off-by: LosFarmosCTL <80157503+LosFarmosCTL@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(pandoc): Update compiler plugin to use actual 'spelllang'
Christian Brabandt [Mon, 9 Sep 2024 18:26:28 +0000 (20:26 +0200)] 
runtime(pandoc): Update compiler plugin to use actual 'spelllang'

Previously these would be cached in buffer-local variables and
would not change on :compiler pandoc

closes: #15642

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(groff): Add compiler plugin for groff
Konfekt [Mon, 9 Sep 2024 18:03:03 +0000 (20:03 +0200)] 
runtime(groff): Add compiler plugin for groff

Groff MOM (Macros for Manuscripts) is a macro package for the GNU
troff (groff) typesetting system, a light-weight alternative
to LaTeX for professional-quality documents.

closes: #15646

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0724: if_python: link error with python 3.13 and stable ABI v9.1.0724
Yee Cheng Chin [Mon, 9 Sep 2024 17:55:24 +0000 (19:55 +0200)] 
patch 9.1.0724: if_python: link error with python 3.13 and stable ABI

Problem:  if_python: link error with python 3.13 and stable ABI
          (zdohnal)
Solution: Use the correct stable APIs Py_IncRef and Py_DecRef instead
          (Yee Cheng Chin)

This fixes #15460 properly. There was an attempt to fix it in v9.1.0668,
but it did it by manually copy and pasting definitions from Python 3.13
headers, which is problematic as it makes Vim dependent on low-level
implementation details which are subject to change. That change also
pulls in dependencies to private APIs (`_Py_IncRef`) which is a very bad
idea as the next version of Python could very well remove that.

The core issue was simply that `Py_INCREF` and similar functions are not
part of the stable API. We are supposed to be using `Py_IncRef` instead
which performs null-check (similar to `Py_XINCREF`) and is available as
a linkable function. We simply need to call it instead of the macro.
We simply remap `Py_INCREF` (and friends) to the function version in
stable API similar to how we mapped other functions.

related #15460
closes: #15648

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0723: if_python: dynamic linking fails with python3 >= 3.13 v9.1.0723
Yee Cheng Chin [Mon, 9 Sep 2024 17:46:17 +0000 (19:46 +0200)] 
patch 9.1.0723: if_python: dynamic linking fails with python3 >= 3.13

Problem:  if_python: dynamic linking fails with python3 >= 3.13
          when using non-stable ABI (zdohnal)
Solution: do not try to import the privat python symbol
          _PyObject_NextNotImplemented
          (Yee Cheng Chin)

Vim is importing a private Python symbol `_PyObject_NextNotImplemented`
because it used to be required as part of the `PyIter_Check()` macro in
an abstraction breaking way. Python eventually fixed the issue and in
3.13 it removed the private symbol export, which broke Vim. Simply
remove importing this private symbol in newer Python versions as it's no
longer needed for PyIter_Check to work.

fixes: #15457
closes: #15649

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0722: crash with large id in text_prop interface v9.1.0722
Christian Brabandt [Sun, 8 Sep 2024 18:05:23 +0000 (20:05 +0200)] 
patch 9.1.0722: crash with large id in text_prop interface

Problem:  crash with large id in text_prop interface
          prop_add()/prop_add_list() (cposture)
Solution: Error out if the id is > INT_MAX or <= INT_MIN

fixes: #15637
closes: #15638

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0721: tests: test_mksession does not consider XDG_CONFIG_HOME v9.1.0721
John M Devin [Sun, 8 Sep 2024 18:00:38 +0000 (20:00 +0200)] 
patch 9.1.0721: tests: test_mksession does not consider XDG_CONFIG_HOME

Problem:  tests: test_mksession does not consider XDG_CONFIG_HOME
Solution: allow to match $HOME/.vim/ and $HOME/.config/vim for &viewdir
          (John M Devin)

closes: #15639

Signed-off-by: John M Devin <john.m.devin@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(glvs): update GetLatestVimScripts plugin
GuyBrush [Sun, 8 Sep 2024 17:54:43 +0000 (19:54 +0200)] 
runtime(glvs): update GetLatestVimScripts plugin

GetLatestVimScripts builtin plugin required several fixes:
* Support for the new vimbal `.vmb` extension introduced in
  [patch 9.0.1797](https://github.com/vim/vim/commit/f97f6bbf56408c0c97b4ddbe81fba858d7455b0d):
  Vimball/Visual Basic filetype detection conflict
* Update the urls from the old `sourceforge.net` to `vim.org`.
  The download url was hardcoded and a new variable is introduced.
* Fix `curl` command line option to set a filename (`-O` uses the remote
  filename and `-o` specifies a filename).
* Replace windows' command to move files. `REN` can only rename files and
  the script actually moves them. My educated guess was that originally
  only renaming was necessary. When the script was modified to move
  files no change was required on linux because `mv` does both.
* Fix Autoinstall support to check `ftplugins` and `pack-plugins` too
  (`pack-plugins` did not exist when the plugin was created).

closes: #15640

Signed-off-by: GuyBrush <miguel.barro@live.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(doc): Fix typo in :help :hide text
Doug Kearns [Sun, 8 Sep 2024 17:39:20 +0000 (19:39 +0200)] 
runtime(doc): Fix typo in :help :hide text

closes: #15644

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(doc): buffers can be re-used
Christian Brabandt [Sat, 7 Sep 2024 15:28:04 +0000 (17:28 +0200)] 
runtime(doc): buffers can be re-used

while at it, also move the note about :wincmd
directly to :h :wincmd, it doesn't seem to belong to the buffer section.

closes: #15636

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0720: Wrong breakindentopt=list:-1 with multibyte or TABs v9.1.0720
zeertzjq [Sat, 7 Sep 2024 09:23:54 +0000 (11:23 +0200)] 
patch 9.1.0720: Wrong breakindentopt=list:-1 with multibyte or TABs

Problem:  Wrong breakindentopt=list:-1 with multibyte chars or TABs in
          text matched by 'formatlistpat' (John M Devin)
Solution: Use the width of the match text (zeertzjq)

fixes: #15634
closes: #15635

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0719: Resetting cell widths can make 'listchars' or 'fillchars' invalid v9.1.0719
zeertzjq [Fri, 6 Sep 2024 14:24:41 +0000 (16:24 +0200)] 
patch 9.1.0719: Resetting cell widths can make 'listchars' or 'fillchars' invalid

Problem:  Resetting cell widths can make 'listchars' or 'fillchars'
          invalid.
Solution: Check for conflicts when resetting cell widths (zeertzjq).

closes: #15629

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(doc): Update version9.txt and mention $MYVIMDIR
Christian Brabandt [Thu, 5 Sep 2024 16:21:21 +0000 (18:21 +0200)] 
runtime(doc): Update version9.txt and mention $MYVIMDIR

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0718: hard to know the users personal Vim Runtime Directory v9.1.0718
Christian Brabandt [Thu, 5 Sep 2024 15:46:19 +0000 (17:46 +0200)] 
patch 9.1.0718: hard to know the users personal Vim Runtime Directory

Problem:  hard to guess the Vim Runtime Directory
Solution: Set the $MYVIMDIR environment variable to the users
          personal runtime directory (e.g. ~/.vim on Linux)

closes: #15576

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0717: Unnecessary nextcmd NULL checks in parse_command_modifiers() v9.1.0717
zeertzjq [Thu, 5 Sep 2024 15:26:30 +0000 (17:26 +0200)] 
patch 9.1.0717: Unnecessary nextcmd NULL checks in parse_command_modifiers()

Problem:  Unnecessary nextcmd NULL checks in parse_command_modifiers().
Solution: Remove them (zeertzjq)

Every place parse_command_modifiers() is called, nextcmd is NULL, and
after it's set to non-NULL the function returns very soon.
Even if one day nextcmd may be non-NULL, the NULL checks may still be
wrong as the correct behavior may be overriding nextcmd.

closes: #15620

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoMaintainers: fix typo in author name
Gregory Anders [Thu, 5 Sep 2024 15:23:17 +0000 (17:23 +0200)] 
Maintainers: fix typo in author name

closes: #15626

Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0716: resetting setcellwidth() doesn't update the screen v9.1.0716
Ken Takata [Thu, 5 Sep 2024 15:19:34 +0000 (17:19 +0200)] 
patch 9.1.0716: resetting setcellwidth() doesn't update the screen

Problem:  resetting setcellwidth() doesn't update the screen
Solution: Redraw after clearing the cellwidth table (Ken Takata)

closes: #15628

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(hcl,terraform): Add runtime files for HCL and Terraform
Gregory Anders [Wed, 4 Sep 2024 20:19:45 +0000 (22:19 +0200)] 
runtime(hcl,terraform): Add runtime files for HCL and Terraform

closes: #15618

Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agoruntime(tmux): Update syntax script
Eric Pruitt [Wed, 4 Sep 2024 20:15:40 +0000 (22:15 +0200)] 
runtime(tmux): Update syntax script

closes: ericpruitt/tmux.vim#25
closes: #15622

Signed-off-by: Eric Pruitt <eric.pruitt@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0715: Not correctly parsing color names (after v9.1.0709) v9.1.0715
Christian Brabandt [Wed, 4 Sep 2024 20:10:34 +0000 (22:10 +0200)] 
patch 9.1.0715: Not correctly parsing color names (after v9.1.0709)

Problem:  Not correctly parsing color names (chdiza, after v9.1.0709)
Solution: Revert part of the patch that compares the color names and
          fall-back to the macro STRICMP

fixes: #15617
closes: #15619

Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0714: tests: GuiEnter_Turkish test may fail v9.1.0714
Ken Takata [Tue, 3 Sep 2024 21:01:55 +0000 (23:01 +0200)] 
patch 9.1.0714: tests: GuiEnter_Turkish test may fail

Problem:  tests: GuiEnter_Turkish test may fail
Solution: the message will be translated if the Turkish message file is
          installed. Use gettext() to get the expected message
          (Ken Takata)

closes: #15615

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0713: Newline causes E749 in Ex mode v9.1.0713
zeertzjq [Tue, 3 Sep 2024 20:58:30 +0000 (22:58 +0200)] 
patch 9.1.0713: Newline causes E749 in Ex mode

Problem:  Newline causes E749 in Ex mode (after 9.1.0573).
Solution: Don't execute empty command followed by a newline.

closes: #15614

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0712: tests: missing dependency of Test_gettext_makefile v9.1.0712
James McCoy [Tue, 3 Sep 2024 20:50:38 +0000 (22:50 +0200)] 
patch 9.1.0712: tests: missing dependency of Test_gettext_makefile

Problem:  tests: missing dependency of Test_gettext_makefile
Solution: Check that xgettext binary is available, else skip the test
          (James McCoy)

closes: #15612

Signed-off-by: James McCoy <jamessan@jamessan.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0711: tests: test_xxd may file when using different xxd v9.1.0711
James McCoy [Tue, 3 Sep 2024 20:46:31 +0000 (22:46 +0200)] 
patch 9.1.0711: tests: test_xxd may file when using different xxd

Problem:  tests: test_xxd may file when using different xxd
Solution: Make Test_xxd_color_0 agnostic to xxd's path, similar to
          Test_xxd_color_1 by filtering out shell command prompt in
          screen dump file (James McCoy)

If an alternative xxd path is provided, e.g., the system installed xxd,
then the screen dump fails due to the difference in path.

From test_xxd.vim:
Found errors in Test_xxd_color2():
Run 1, 15:17:03 - 15:17:04:
command line..script /tmp/autopkgtest-lxc.1auv5tlk/downtmp/autopkgtest_tmp/vim/src/testdir/runtest.vim[607]..function RunTheTest[57]..Test_xxd_color2[36]..VerifyScreenDump line 67: See dump file difference: call term_dumpdiff("testdir/failed/Test_xxd_color_0.dump", "testdir/dumps/Test_xxd_color_0.dump"); difference in line 1: "|$+0&#ffffff0| |/|u|s|r|/|b|i|n|/|x@1|d| |-|R| |n|e|v|e|r| @1|<| |X@1|D|f|i|l|e|_|c|o|l|o|r|s| @33"

related: #15612

Signed-off-by: James McCoy <jamessan@jamessan.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
15 months agopatch 9.1.0710: popup window may hide part of Command line v9.1.0710
Christian Brabandt [Tue, 3 Sep 2024 16:20:13 +0000 (18:20 +0200)] 
patch 9.1.0710: popup window may hide part of Command line

Problem:  when a popup window covers the command line,
          the command line is not completely cleared on popup_hide()
          (yu3s)
Solution: Check if the popup window covers the command line and if it
          does, set the clear_cmdline flag.

fixes: #15608
closes: #15610

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