]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
14 months agopatch 9.1.0769: filetype: MLIR files are not recognized v9.1.0769
Wu, Zhenyu [Tue, 8 Oct 2024 19:58:35 +0000 (21:58 +0200)] 
patch 9.1.0769: filetype: MLIR files are not recognized

Problem:  filetype: MLIR files are not recognized
Solution: Detect '*.mlir' files as mlir filetype,
          include a mlir filetype plugin
          (Wu, Zhenyu)

closes: #15826

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0768: MS-Windows: incorrect cursor position when restoring screen v9.1.0768
William Bresler [Tue, 8 Oct 2024 19:30:48 +0000 (21:30 +0200)] 
patch 9.1.0768: MS-Windows: incorrect cursor position when restoring screen

Problem:  MS-Windows: incorrect cursor position when restoring screen
          (after v9.1.0664)
Solution: Restore the VTP command for switching screens back to
          termcap_mode_end() (William Bresler)

Patch 9.1.0664 moved the VTP command for switching back to the main
screen buffer from termcap_mode_end() to mch_exit_c().  However, the
saved cursor position from the main screen continued to be restored
in termcap_mode_end().  This failed if the cursor position was beyond
the console window height, since the alternate screen buffer is always
the same size as the console window.

This patch restores the VTP command for switching back to the main
screen buffer to termcap_mode_end().  In order to preserve the effect
of patch 9.1.0664, the VTP command for switching back to the main
screen buffer in mch_exit_c() is issued only if termcap mode was not
active while exiting Vim.

See issue 15775 for a fuller description, with screen shots of the
problem.

fixes: #15775
closes: #15829

Signed-off-by: William Bresler <wbresler@gmail.com>
Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(nasm): Update nasm syntax script
Andrii Sokolov [Tue, 8 Oct 2024 19:10:09 +0000 (21:10 +0200)] 
runtime(nasm): Update nasm syntax script

Co-authored-by: sarvel <sarvel@protonmail.com>
Signed-off-by: Andrii Sokolov <andriy145@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0767: A condition is always true in ex_getln.c v9.1.0767
zeertzjq [Tue, 8 Oct 2024 19:04:19 +0000 (21:04 +0200)] 
patch 9.1.0767: A condition is always true in ex_getln.c

Problem:  A cmdlen == 0 condition is always true as ccline.cmdlen == 0
          was already checked above (after v9.1.0766).
Solution: Remove the condition and the variable.
          (zeertzjq)

closes: #15830

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(skill): Update syntax file to fix string escapes
Simão Afonso @ Powertools Tech [Tue, 8 Oct 2024 18:58:41 +0000 (20:58 +0200)] 
runtime(skill): Update syntax file to fix string escapes

The syntax script allowed for single backslash escapes like this
"string\""
But did not accommodate for the uncommon case:
"<key>\\"
Let's fix this by also skipping over double backslashes in the
skillString region.

closes: #15832

Signed-off-by: Simão Afonso @ Powertools Tech <simao.afonso@powertools-tech.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(help): highlight CTRL-<Key> correctly
Christian Brabandt [Tue, 8 Oct 2024 18:20:23 +0000 (20:20 +0200)] 
runtime(help): highlight CTRL-<Key> correctly

Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(doc): add missing usr_52 entry to toc
Christian Brabandt [Mon, 7 Oct 2024 19:48:32 +0000 (21:48 +0200)] 
runtime(doc): add missing usr_52 entry to toc

fixes: #15821

Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0766: too many strlen() calls in ex_getln.c v9.1.0766
John Marriott [Mon, 7 Oct 2024 19:40:39 +0000 (21:40 +0200)] 
patch 9.1.0766: too many strlen() calls in ex_getln.c

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

closes: #15809

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(doc): correct `vi` registers 1-9 documentation error
Frederick Key Abell III [Mon, 7 Oct 2024 19:07:12 +0000 (21:07 +0200)] 
runtime(doc): correct `vi` registers 1-9 documentation error

When using heirloom `vi` originally written by Bill Joy (`:version`
gives me "Version 4.0 (gritter) 12/25/06"), its possible to store text into
registers 1-9 and subsequently use the `:edit` or `:next` command to
change files and paste the contents of those numbered registers,
contrary to what Vim documentation states.

POSIX description also does not mention such a restriction:
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/ex.html#tag_20_40_13_10

closes: #15814

Signed-off-by: Frederick Key Abell III <fkabell@localhost.localdomain>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0765: No test for patches 6.2.418 and 7.3.489 v9.1.0765
zeertzjq [Mon, 7 Oct 2024 19:05:06 +0000 (21:05 +0200)] 
patch 9.1.0765: No test for patches 6.2.418 and 7.3.489

Problem:  No test for patches 6.2.418 and 7.3.489
Solution: Add a test.  Fix some whitespace problems in test_mapping.vim.
          Document the behavior (zeertzjq).

closes: #15815

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(spec): set comments and commentstring options
Andreas Schneider [Mon, 7 Oct 2024 19:02:10 +0000 (21:02 +0200)] 
runtime(spec): set comments and commentstring options

closes: #15817

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoNSIS: Include libgcc_s_sjlj-1.dll again
K.Takata [Mon, 7 Oct 2024 18:37:00 +0000 (20:37 +0200)] 
NSIS: Include libgcc_s_sjlj-1.dll again

gettext-iconv-windows v0.22.5a-v1.17 requires libgcc_s_sjlj-1.dll again.
Add a new option ${INCLUDE_LIBGCC} to control whether it should be
included in the package.

This partly reverts 49f1e1979f9c3a4d7b28f0961bca0e41227a0557.

Related: https://github.com/vim/vim-win32-installer/pull/355

closes: #15819

Signed-off-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(doc): clarify the effect of 'startofline' option
Christian Brabandt [Sun, 6 Oct 2024 15:57:53 +0000 (17:57 +0200)] 
runtime(doc): clarify the effect of 'startofline' option

fixes: #15794

Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0764: [security]: use-after-free when closing a buffer v9.1.0764
Christian Brabandt [Sun, 6 Oct 2024 15:31:10 +0000 (17:31 +0200)] 
patch 9.1.0764: [security]: use-after-free when closing a buffer

Problem:  [security]: use-after-free when closing a buffer
Solution: When splitting the window and editing a new buffer,
          check whether the newly to be edited buffer has been marked
          for deletion and abort in this case

Github Advisory:
https://github.com/vim/vim/security/advisories/GHSA-rj48-v4mq-j4vg

Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(vim): Update base-syntax file, improve class, enum and interface highlighting
Doug Kearns [Sun, 6 Oct 2024 15:00:48 +0000 (17:00 +0200)] 
runtime(vim): Update base-syntax file, improve class, enum and interface highlighting

- Enable folding of class, enum and interface declarations.
- Highlight constructor names with the Function highlight group, like
  other special methods.
- Mark function definitions using special method names as errors.
- Highlight :type arguments.

fixes: #14393#issuecomment-2042796198.
closes: #13810

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0763: tests: cannot run single syntax tests v9.1.0763
Aliaksei Budavei [Sun, 6 Oct 2024 14:57:33 +0000 (16:57 +0200)] 
patch 9.1.0763: tests: cannot run single syntax tests

Problem:  tests: cannot run single syntax tests
Solution: Support running a subset of syntax tests
          (Aliaksei Budavei)

Two methods of assembling a subset of test filenames for
selection are provided:

* Filename and filetype Make targets will be generated, and
  multiple such targets can be passed before the mandated
  trailing "test" target, e.g. "make html markdown test".

* Filenames and their parts can be specified as a regular
  expression that is assigned to a "VIM_SYNTAX_TEST_FILTER"
  environment variable, and used with the test Make target,
  e.g. "VIM_SYNTAX_TEST_FILTER=html\\\|markdown make test".
  (This variable will be ignored and the whole suite will be
  run when Make is GNU Make and a parent Makefile is used.)

Methods can be used alone or together, with the Make targets
having the higher precedence. Neither method will influence
the order of test execution.

closes: #15670

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0762: 'cedit', 'termwinkey' and 'wildchar' may not be parsed correctly v9.1.0762
Milly [Sun, 6 Oct 2024 14:47:02 +0000 (16:47 +0200)] 
patch 9.1.0762: 'cedit', 'termwinkey' and 'wildchar' may not be parsed correctly

Problem:  'cedit', 'termwinkey' and 'wildchar' may not be parsed
          correctly
Solution: improve string_to_key() function in option.c
          (Milly)

- Problem: `^@` raises an error.
  Solution: Store as `<Nul>`.
- Problem: `<t_xx` does not raise an error.
  Solution: Raise an error if closing `>` is missing.
- Problem: Single `<` or `^` raises an error. It is inconvenient for users.
  Solution: They are stored as a single character.

closes: #15811

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0761: :cd completion fails on Windows with backslash in path v9.1.0761
Christian Brabandt [Sun, 6 Oct 2024 14:34:20 +0000 (16:34 +0200)] 
patch 9.1.0761: :cd completion fails on Windows with backslash in path

Problem:  :cd completion fails on Windows with backslash in path
Solution: switch no_bslash argument to FALSE in file_pat_to_reg_pat()

Note: only fixes the problem on Windows. For Unix, we still need to
escape backslashes since those are taken as regex atoms (and could be
invalid regex atoms).

fixes: #15643
closes: #15808

Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0760: tests: no error reported, if gen_opt_test.vim fails v9.1.0760
Milly [Sun, 6 Oct 2024 14:27:28 +0000 (16:27 +0200)] 
patch 9.1.0760: tests: no error reported, if gen_opt_test.vim fails

Problem:  tests: no error reported, if gen_opt_test.vim fails
Solution: Make Vim exit with return code 1 in case of any error
          (Milly)

closes: #15795

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0759: screenpos() may return invalid position v9.1.0759
Christian Brabandt [Sat, 5 Oct 2024 15:30:22 +0000 (17:30 +0200)] 
patch 9.1.0759: screenpos() may return invalid position

Problem:  screenpos() may return invalid position
          after switching buffers (Greg Hurrell)
Solution: reset w_leftcol if wrapping has been set
          after copying wrap option

fixes: #15792
closes: #15803

Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(misc): unset compiler in various ftplugins
Konfekt [Sat, 5 Oct 2024 15:26:46 +0000 (17:26 +0200)] 
runtime(misc): unset compiler in various ftplugins

just to foster best practices

closes: #15798

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(doc): update formatting and syntax
Milly [Sat, 5 Oct 2024 15:16:18 +0000 (17:16 +0200)] 
runtime(doc): update formatting and syntax

closes: #15800

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(compiler): add cppcheck linter compiler plugin
Konfekt [Sat, 5 Oct 2024 15:09:21 +0000 (17:09 +0200)] 
runtime(compiler): add cppcheck linter compiler plugin

closes: #15804

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(doc): Fix style in documents
h-east [Sat, 5 Oct 2024 14:56:47 +0000 (16:56 +0200)] 
runtime(doc): Fix style in documents

closes: #15801

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(doc): Fix to two-space convention in user manual
h-east [Sat, 5 Oct 2024 14:44:27 +0000 (16:44 +0200)] 
runtime(doc): Fix to two-space convention in user manual

closes: #15802

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(comment): consider &tabstop in lines after whitespace indent
Konfekt [Sat, 5 Oct 2024 14:17:04 +0000 (16:17 +0200)] 
runtime(comment): consider &tabstop in lines after whitespace indent

The count `strlen()` in

```vim
line = printf(indent_start .. substitute(cms, '%s\@!', '%%', 'g'),
                       strpart(getline(lnum), strlen(indent_start)))
```

is too large if the block of lines to be operated on contains different
whitespace indenting (tab vs. spaces).

Considering using `2gcc` on the first line with 4 spaces as indenting
and on the next line using a single tab character (with &tabstop value
of 8):

Using `strlen(indent_start) = 4` for an initial indent of 4 spaces is
correct for the first line, but wrong for the next line and will
therefore wrongly comment out the tab-indented line (and possibly
deleting some content).

The new check is still too simple because it assumes that as soon as
there's a tab the whole indent is made of tabs; it's a start of entering
the mixed tab and whitespace indent rabbit hole.

fixes: #15797
closes: #15805

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0758: it's possible to set an invalid key to 'wildcharm' v9.1.0758
Milly [Fri, 4 Oct 2024 18:41:14 +0000 (20:41 +0200)] 
patch 9.1.0758: it's possible to set an invalid key to 'wildcharm'

Problem:  it's possible to set an invalid key to 'wildcharm'
Solution: error out, if the 'wildcharm' value is an invalid key
          (Milly)

closes: #15787

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(java): Manage circularity for every :syn-included syntax file
Aliaksei Budavei [Fri, 4 Oct 2024 18:25:05 +0000 (20:25 +0200)] 
runtime(java): Manage circularity for every :syn-included syntax file

With "g:markdown_fenced_languages" defined and "java" added
to its list, a circular dependency between the Markdown and
Java syntax files will be made.  To break it, no Markdown
documentation comments will be recognised in fenced blocks
in Markdown files; in order to view Java source files,
"java" must be removed from "g:markdown_fenced_languages",
and this task can be automated as follows.

1) Add to "~/.after/ftplugin/java.vim":
------------------------------------------------------------
if exists("g:markdown_fenced_languages") &&
\ !(exists("g:java_ignore_javadoc") ||
\ exists("g:java_ignore_markdown"))
    let s:idx = index(g:markdown_fenced_languages, 'java')
    if s:idx > -1
call remove(g:markdown_fenced_languages, s:idx)
    endif
    unlet s:idx
endif
------------------------------------------------------------

2) Optionally add to "~/.after/ftplugin/markdown.vim":
------------------------------------------------------------
if exists("g:markdown_fenced_languages") &&
\ index(g:markdown_fenced_languages, 'java') < 0
    call add(g:markdown_fenced_languages, 'java')
endif
------------------------------------------------------------

(Make sure that the above snippets appear in the files under
the "ftplugin" NOT "syntax" directory.)

Finally, unless the new version of the syntax file is made
available from "$VIMRUNTIME" (and from "~/.vim/syntax" if
necessary), OTHER discoverable file versions will be used
whose behaviour may interfere with this fix.

related: #15740
closes: #15796

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0757: tests: messages files contains ANSI escape sequences v9.1.0757
Christian Brabandt [Thu, 3 Oct 2024 14:38:52 +0000 (16:38 +0200)] 
patch 9.1.0757: tests: messages files contains ANSI escape sequences

Problem:  tests: messages files contains ANSI escape sequences
Solution: filter those out in runtests.vim

Also, since we are setting $LC_ALL, we don't need to set $LANG and
$LANGUAGE since those are overridden by $LC_ALL anyhow.

closes: #15788

Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0756: missing change from patch v9.1.0754 v9.1.0756
glepnir [Thu, 3 Oct 2024 09:01:19 +0000 (11:01 +0200)] 
patch 9.1.0756: missing change from patch v9.1.0754

Problem:  missing change from patch v9.1.0754
Solution: use correct width for the actual item
          in pum_redraw() (glepnir)

closes: #15786

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0755: quickfix list does not handle hardlinks well v9.1.0755
Austin Chang [Thu, 3 Oct 2024 08:50:05 +0000 (10:50 +0200)] 
patch 9.1.0755: quickfix list does not handle hardlinks well

Problem:  quickfix list does not handle hardlinks well
Solution: store original file name with quickfix entry
          (Austin Chang)

Quickfix list shows entries with duplicate name if the file is opened
with the path of hard links.

The major cause is that qflist assumed that the filename passed into
`qf_add_entry` matches the filename opened with the buffer.

This patch handles this case by introduce a `qf_fname` into `qfline_S`
structure. It stores the filename from `qf_add_entry` for each quickfix
line.

closes: #15687

Signed-off-by: Austin Chang <austin880625@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(doc): 'filetype', 'syntax' and 'keymap' only allow alphanumeric + some characters
Milly [Wed, 2 Oct 2024 17:30:41 +0000 (19:30 +0200)] 
runtime(doc): 'filetype', 'syntax' and 'keymap' only allow alphanumeric + some characters

closes: #15783

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoruntime(systemd): small fixes to &keywordprg in ftplugin
Konfekt [Wed, 2 Oct 2024 17:28:44 +0000 (19:28 +0200)] 
runtime(systemd): small fixes to &keywordprg in ftplugin

closes: #15784

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agoCI: macos-12 runner is being sunset, switch to 13
Philip H. [Wed, 2 Oct 2024 17:21:52 +0000 (19:21 +0200)] 
CI: macos-12 runner is being sunset, switch to 13

See: https://github.com/actions/runner-images/issues/10721

closes: #15780

Signed-off-by: Philip H. <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 months agopatch 9.1.0754: fixed order of items in insert-mode completion menu v9.1.0754
glepnir [Tue, 1 Oct 2024 18:32:12 +0000 (20:32 +0200)] 
patch 9.1.0754: fixed order of items in insert-mode completion menu

Problem:  fixed order of items in insert-mode completion menu
Solution: Introduce the 'completeitemalign' option with default
          value "abbr,kind,menu" (glepnir).

Adding an new option `completeitemalign` abbr is `cia` to custom
the complete-item order in popupmenu.

closes: #14006
closes: #15760

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
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>