]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
9 months agopatch 9.1.0804: tests: no error check when setting global 'cc' v9.1.0804
Milly [Tue, 22 Oct 2024 20:43:01 +0000 (22:43 +0200)] 
patch 9.1.0804: tests: no error check when setting global 'cc'

Problem:  tests: no error check when setting global 'cc'
Solution: also parse and check global 'cc' value (Milly)

closes: #15914

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0803: tests: no error check when setting global 'isk' v9.1.0803
Milly [Tue, 22 Oct 2024 20:27:19 +0000 (22:27 +0200)] 
patch 9.1.0803: tests: no error check when setting global 'isk'

Problem:  tests: no error check when setting global 'isk'
Solution: also parse and check global 'isk' value (Milly)

closes: #15915

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0802: tests: no error check when setting global 'fdm' to empty value v9.1.0802
Milly [Tue, 22 Oct 2024 20:11:51 +0000 (22:11 +0200)] 
patch 9.1.0802: tests: no error check when setting global 'fdm' to empty value

Problem:  tests: no error check when setting global 'fdm' to empty value
Solution: Also check global 'fdm' value for being empty (Milly).

closes: #15916

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0801: tests: no error check when setting global 'termwinkey' v9.1.0801
Milly [Tue, 22 Oct 2024 20:07:52 +0000 (22:07 +0200)] 
patch 9.1.0801: tests: no error check when setting global 'termwinkey'

Problem:  tests: no error check when setting global 'termwinkey'
Solution: Also validate when using setglobal (Milly).

closes: #15917

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0800: tests: no error check when setting global 'termwinsize' v9.1.0800
Milly [Tue, 22 Oct 2024 20:01:46 +0000 (22:01 +0200)] 
patch 9.1.0800: tests: no error check when setting global 'termwinsize'

Problem:  tests: no error check when setting global 'termwinsize'
Solution: Also validate when using setglobal (Milly).

closes: #15918

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(doc): :ownsyntax also resets 'spelloptions'
zeertzjq [Tue, 22 Oct 2024 19:36:45 +0000 (21:36 +0200)] 
runtime(doc): :ownsyntax also resets 'spelloptions'

closes: #15919

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0799: tests: gettwinvar()/gettabwinvar() tests are not comprehensive v9.1.0799
Milly [Tue, 22 Oct 2024 19:23:31 +0000 (21:23 +0200)] 
patch 9.1.0799: tests: gettwinvar()/gettabwinvar() tests are not comprehensive

Problem:  tests: gettwinvar()/gettabwinvar() tests are not comprehensive
Solution: Add more tests (Milly)

closes: #15920

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(doc): Fix wrong Mac default options
Yee Cheng Chin [Tue, 22 Oct 2024 19:16:43 +0000 (21:16 +0200)] 
runtime(doc): Fix wrong Mac default options

Clean up docs for macOS defaults. Simply use "Unix" across the board
instead of being inconsistent and occasionally using "Unix, macOS". Also
remove stale defaults that were erroneously renamed to "macOS" from
"Macintosh" when they were actually referring to Mac OS 9 which is no
longer supported.

closes: #15924

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0798: too many strlen() calls in cmdhist.c v9.1.0798
John Marriott [Mon, 21 Oct 2024 20:37:07 +0000 (22:37 +0200)] 
patch 9.1.0798: too many strlen() calls in cmdhist.c

Problem:  too many strlen() calls in cmdhist.c
Solution: refactor code and remove strlen() calls
          (John Marriott)

closes: #15888

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0797: testing of options can be further improved v9.1.0797
Milly [Mon, 21 Oct 2024 20:20:51 +0000 (22:20 +0200)] 
patch 9.1.0797: testing of options can be further improved

Problem:  testing of options can be further improved
Solution: split the generated option test into test_options_all.vim,
          add more test cases, save and restore values, fix use-after-free

closes: #15894

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0796: filetype: libtool files are not recognized v9.1.0796
Wu, Zhenyu [Mon, 21 Oct 2024 20:09:32 +0000 (22:09 +0200)] 
patch 9.1.0796: filetype: libtool files are not recognized

Problem:  filetype: libtool files are not recognized
Solution: detect '*.{lo,la,lai}' as sh filetype
          (Wu, Zhenyu)

closes: #15751

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(typst): add folding to typst ftplugin
Luca Saccarola [Mon, 21 Oct 2024 20:01:10 +0000 (22:01 +0200)] 
runtime(typst): add folding to typst ftplugin

closes: #15897

Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(netrw): deprecate and remove netrwFileHandlers#Invoke()
Luca Saccarola [Mon, 21 Oct 2024 19:27:03 +0000 (21:27 +0200)] 
runtime(netrw): deprecate and remove netrwFileHandlers#Invoke()

closes: #15895

Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0795: filetype: Vivado memory info file are not recognized v9.1.0795
Wu, Zhenyu [Mon, 21 Oct 2024 18:54:13 +0000 (20:54 +0200)] 
patch 9.1.0795: filetype: Vivado memory info file are not recognized

Problem:  filetype: Vivado memory info file are not recognized
Solution: detect '*.mmi' memory info file as xml filetype
          (Wu, Zhenyu)

References: https://docs.amd.com/r/en-US/ug1580-updatemem/MMI-File-Syntax

closes: #15906

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0794: tests: tests may fail on Windows environment v9.1.0794
Milly [Sun, 20 Oct 2024 09:06:00 +0000 (11:06 +0200)] 
patch 9.1.0794: tests: tests may fail on Windows environment

Problem:  tests: tests may fail on Windows environment
Solution: use shellcmdflag=/D to skip executing autorun from
          the registry (Milly)

closes: #15900

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(doc): improve the :colorscheme documentation
nisbet-hubbard [Sun, 20 Oct 2024 08:47:10 +0000 (10:47 +0200)] 
runtime(doc): improve the :colorscheme documentation

closes: #15871

Signed-off-by: nisbet-hubbard <87453615+nisbet-hubbard@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0793: xxd: -e does add one extra space v9.1.0793
Aapo Rantalainen [Sat, 19 Oct 2024 13:54:57 +0000 (15:54 +0200)] 
patch 9.1.0793: xxd: -e does add one extra space

Problem:  xxd: -e does add one extra space
Solution: fix it, refactor and merge some code
          (Aapo Rantalainen)

fixes: #15898
closes: #15899

Signed-off-by: Aapo Rantalainen <aapo.rantalainen@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0792: tests: Test_set_values() is not comprehensive enough v9.1.0792
Milly [Fri, 18 Oct 2024 17:58:04 +0000 (19:58 +0200)] 
patch 9.1.0792: tests: Test_set_values() is not comprehensive enough

Problem:  tests: Test_set_values() is not comprehensive enough
Solution: Add a lot more test cases (Milly)

closes: #15892

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(swayconfig): add flag for bindsym/bindcode to syntax script
CismonX [Thu, 17 Oct 2024 19:44:35 +0000 (21:44 +0200)] 
runtime(swayconfig): add flag for bindsym/bindcode to syntax script

Add the `--inhibited` flag for the bindsym/bindcode commands.

closes: #15891

Signed-off-by: CismonX <admin@cismon.net>
Signed-off-by: James Eapen <james.eapen@vai.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0791: tests: errors in gen_opt_test.vim are not shown v9.1.0791
Milly [Thu, 17 Oct 2024 19:05:31 +0000 (21:05 +0200)] 
patch 9.1.0791: tests: errors in gen_opt_test.vim are not shown

Problem:  tests: errors in gen_opt_test.vim are not shown
Solution: update gen_opt_test.vim and write test.log,
          let the makefile output test.log (Milly)

closes: #15887

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(compiler): check for compile_commands in build dirs for cppcheck
Konfekt [Thu, 17 Oct 2024 18:54:00 +0000 (20:54 +0200)] 
runtime(compiler): check for compile_commands in build dirs for cppcheck

closes: #15889

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0790: Amiga: AmigaOS4 build should use default runtime (newlib) v9.1.0790
Ola Söder [Thu, 17 Oct 2024 18:49:36 +0000 (20:49 +0200)] 
patch 9.1.0790: Amiga: AmigaOS4 build should use default runtime (newlib)

Problem:  Amiga: AmigaOS4 build should use default runtime (newlib)
Solution: Remove clib2 from compiler / linker flags (Ola Söder)

closes: #15890

Signed-off-by: Ola Söder <rolfkopman@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(help): Update help syntax
Milly [Wed, 16 Oct 2024 20:11:17 +0000 (22:11 +0200)] 
runtime(help): Update help syntax

This commit makaes the following changes to the vim help syntax:

- fix excessive URL detection in help, because `file:{filename}` in
  doc/options.txt is determined to be a URL.
- update highlighting N for :resize in help
- split Italian-specific syntax into separate help script
- highlight `Note` in parentheses in help
- update 'titlestring' behaviour in documentation for invalid '%' format

closes: #15883

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(help): fix end of sentence highlight in code examples
Christian Brabandt [Wed, 16 Oct 2024 19:58:17 +0000 (21:58 +0200)] 
runtime(help): fix end of sentence highlight in code examples

closes: #15745

Co-authored-by: Danilo Rezende <returndanilo@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(jinja): Support jinja syntax as secondary filetype
Gregory Anders [Wed, 16 Oct 2024 19:30:01 +0000 (21:30 +0200)] 
runtime(jinja): Support jinja syntax as secondary filetype

fixes: ##15880
closes: #15885

Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0789: tests: ':resize + 5' has invalid space after '+' v9.1.0789
Milly [Wed, 16 Oct 2024 18:03:44 +0000 (20:03 +0200)] 
patch 9.1.0789: tests: ':resize + 5' has invalid space after '+'

Problem:  tests: ':resize + 5' has invalid space after '+'
Solution: Correct the test (Milly)

closes: #15884

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0788: <CSI>27;<mod>u is not decoded to literal Escape in kitty/foot v9.1.0788
Christian Fillion [Wed, 16 Oct 2024 15:28:38 +0000 (17:28 +0200)] 
patch 9.1.0788: <CSI>27;<mod>u is not decoded to literal Escape in kitty/foot

Problem:  <CSI>27;<mod>u is not decoded to literal Escape in kitty/foot
Solution: disable XTerm modifyOtherKeys form 1 when the kitty protocol is enabled
          (Christian Fillion)

References:
- https://invisible-island.net/xterm/modified-keys.html
- https://sw.kovidgoyal.net/kitty/keyboard-protocol/
- https://codeberg.org/dnkl/foot/src/commit/e891abdd6a6652bd46b28c1988700a7f30931210/kitty-keymap.h
- https://github.com/kovidgoyal/kitty/blob/d31459b0926f2afddc317d76314e4afd0d07d473/kitty/key_encoding.c#L193

fixes: #15868
closes: #15881

Signed-off-by: Christian Fillion <contact@cfillion.ca>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0787: cursor position changed when using hidden terminal v9.1.0787
Christian Brabandt [Tue, 15 Oct 2024 18:31:14 +0000 (20:31 +0200)] 
patch 9.1.0787: cursor position changed when using hidden terminal

Problem:  cursor position changed when using hidden terminal
          and BufFilePost autocommand (Mizuno Jan Yuta)
Solution: Save and restore cursor position

fixes: #15854
closes: #15876

Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0786: tests: quickfix update test does not test location list v9.1.0786
Yegappan Lakshmanan [Tue, 15 Oct 2024 18:26:45 +0000 (20:26 +0200)] 
patch 9.1.0786: tests: quickfix update test does not test location list

Problem:  tests: quickfix update test does not test location list
          (after: v9.1.0.785)
Solution: update Test_quickfix_buffer_contents to test with location
          lists (Yegappan Lakshmanan)

closes: #15879

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(doc): add some docs for file-watcher programs
Christian Brabandt [Mon, 14 Oct 2024 20:08:22 +0000 (22:08 +0200)] 
runtime(doc): add some docs for file-watcher programs

fixes: #15733

Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoCI: uploading failed screendumps still fails on Cirrus CI
Aliaksei Budavei [Mon, 14 Oct 2024 19:24:03 +0000 (21:24 +0200)] 
CI: uploading failed screendumps still fails on Cirrus CI

Let's see if removing the double quotes makes a difference.

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0785: cannot preserve error position when setting quickfix list v9.1.0785
Jeremy Fleischman [Mon, 14 Oct 2024 18:46:27 +0000 (20:46 +0200)] 
patch 9.1.0785: cannot preserve error position when setting quickfix list

Problem:  cannot preserve error position when setting quickfix lists
Solution: Add the 'u' action for setqflist()/setloclist() and try
          to keep the closes target position (Jeremy Fleischman)

fixes: #15839
closes: #15841

Signed-off-by: Jeremy Fleischman <jeremyfleischman@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0784: there are several problems with python 3.13 v9.1.0784
Boris Staletic [Mon, 14 Oct 2024 18:28:39 +0000 (20:28 +0200)] 
patch 9.1.0784: there are several problems with python 3.13

Problem:  there are several problems with python 3.13
Solution: fix the problems in the python3 interface (Boris Staletic)

This commit does the following things:
1) Since python 3.13.0b1, all statically defined objects are "immortal".
   Besides never getting garbage collected, this also affects reference
   counting:

   - Immportal objects have a reference count of 2^32-1.
   - Reference counting is a no-op.

   All this is considered implementation details by cpython, so
   documentation is next to non-existent.

   Relevant CPython source code:
   https://github.com/python/cpython/blob/v3.13.0/Include/object.h#L62-L107
   https://github.com/python/cpython/blob/v3.13.0/Include/object.h#L389-L391

2) Opt-out of ANSI-painted python stack traces

3) Make python error message severity more consistent

fixes: #15838
closes: #15842

Signed-off-by: Boris Staletic <boris.staletic@protonmail.com>
Signed-off-by: puremourning <puremourning@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0783: 'spell' option setting has problems v9.1.0783
Milly [Mon, 14 Oct 2024 18:21:48 +0000 (20:21 +0200)] 
patch 9.1.0783: 'spell' option setting has problems

Problem:  'spell' option setting has problems
Solution: correctly check for comma for 'spellfile' option,
          remove unnecessary checks, refactor slightly (Milly)

closes: #15873

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0782: tests: using wrong neomuttlog file name v9.1.0782
Christian Brabandt [Mon, 14 Oct 2024 17:56:38 +0000 (19:56 +0200)] 
patch 9.1.0782: tests: using wrong neomuttlog file name

Problem:  tests: using wrong neomuttlog file name
Solution: use correct file name

related: #15858

Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(doc): add preview flag to statusline example
saher [Mon, 14 Oct 2024 17:52:50 +0000 (19:52 +0200)] 
runtime(doc): add preview flag to statusline example

Problem:  The standard statusline example is missing the preview flag
          "%w"
Solution: Add the preview flag "%w"

closes: #15874

Signed-off-by: saher <msaher.shair@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0781: tests: test_filetype fails v9.1.0781
Christian Brabandt [Sun, 13 Oct 2024 18:28:21 +0000 (20:28 +0200)] 
patch 9.1.0781: tests: test_filetype fails

Problem:  tests: test_filetype fails (clason)
          (after v9.1.0779)
Solution: Use correct filename for neomuttlog filetype

related: #15845

Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0780: MS-Windows: incorrect Win32 error checking v9.1.0780
Nir Lichtman [Sun, 13 Oct 2024 17:44:07 +0000 (19:44 +0200)] 
patch 9.1.0780: MS-Windows: incorrect Win32 error checking

Problem:  MS-Windows: incorrect Win32 error checking
Solution: fix wrong order of error handling and perform
          some minor refactoring (Nir Lichtman)

In the function that adjusts the process privileges there is a mistake
in which GetLastError is called after CloseHandle, though clearly the
last error check is meant for the privileges related call before hand
and the current state appears like a mistake.

So fix this problem, and also perform the following:

- Remove the static variable done since the PlatformId is only called
  during initialization
- Fix incorrect parameter passed to the Win32 API privileges function

closes: #15845

Signed-off-by: Nir Lichtman <nir@lichtman.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0779: filetype: neomuttlog files are not recognized v9.1.0779
Richard Russon [Sun, 13 Oct 2024 17:40:43 +0000 (19:40 +0200)] 
patch 9.1.0779: filetype: neomuttlog files are not recognized

Problem:  filetype: neomuttlog files are not recognized
Solution: detect '*.neomuttdebug' file as neomuttlog filetype,
          include neomuttlog syntax script (Richard Russon)

closes: #15858

Co-authored-by: AvidSeeker <avidseeker7@protonmail.com>
Signed-off-by: Richard Russon <rich@flatcap.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0778: filetype: lf config files are not recognized v9.1.0778
Andis Spriņķis [Sun, 13 Oct 2024 17:29:56 +0000 (19:29 +0200)] 
patch 9.1.0778: filetype: lf config files are not recognized

Problem:  filetype: lf config files are not recognized
Solution: detect lfrc files as lf filetype, include a syntax
          script for lf files (Andis Spriņķis).

References:
- https://github.com/gokcehan/lf

closes: #15859

Signed-off-by: Andis Spriņķis <spr.andis@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(comment): fix commment toggle with mixed tabs & spaces
Maxim Kim [Sun, 13 Oct 2024 17:20:53 +0000 (19:20 +0200)] 
runtime(comment): fix commment toggle with mixed tabs & spaces

- fix regression where toggling doesn't properly remove comment chars in
  files with tabs indents only.
- refactor toggling comments for mixed tabs & spaces sources

closes: #15861

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(misc): Use consistent "Vim script" spelling
h-east [Sun, 13 Oct 2024 17:16:42 +0000 (19:16 +0200)] 
runtime(misc): Use consistent "Vim script" spelling

References: https://groups.google.com/g/vim_dev/c/3Z5yM8KER2w/m/wAqws0QSEAAJ

closes: #15863

Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(gleam): add ftplugin for gleam files
Trilowy [Sun, 13 Oct 2024 17:08:30 +0000 (19:08 +0200)] 
runtime(gleam): add ftplugin for gleam files

fixes: #15864
closes: #15866

Signed-off-by: Trilowy <49493635+trilowy@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(doc): link help-writing from write-local-help
Christian Brabandt [Sun, 13 Oct 2024 08:26:37 +0000 (10:26 +0200)] 
runtime(doc): link help-writing from write-local-help

fixes: #15862

Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0777: filetype: Some upstream php files are not recognized v9.1.0777
nisbet-hubbard [Sat, 12 Oct 2024 15:19:58 +0000 (17:19 +0200)] 
patch 9.1.0777: filetype: Some upstream php files are not recognized

Problem:  filetype: Some upstream php files are not recognized
Solution: Detect more config files from the PHP source
          distribution as filetype ini (nisbet-hubbard).

closes: #15840

Signed-off-by: nisbet-hubbard <87453615+nisbet-hubbard@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(java): Define javaBlockStart and javaBlockOtherStart hl groups
Aliaksei Budavei [Sat, 12 Oct 2024 15:12:51 +0000 (17:12 +0200)] 
runtime(java): Define javaBlockStart and javaBlockOtherStart hl groups

And do not link either to any group.

Resolves zzzyxwvut/java-vim#2.

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(doc): mention conversion rules for remote_expr()
Christian Brabandt [Sat, 12 Oct 2024 09:57:12 +0000 (11:57 +0200)] 
runtime(doc): mention conversion rules for remote_expr()

fixes: #15844

Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(tutor): Fix missing :s command in spanish translation section 4.4
Andrés [Sat, 12 Oct 2024 09:44:35 +0000 (11:44 +0200)] 
runtime(tutor): Fix missing :s command in spanish translation section 4.4

closes: #15850

Signed-off-by: Andrés <abenitof@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0776: test_strftime may fail because of missing TZ data v9.1.0776
James McCoy [Sat, 12 Oct 2024 09:36:58 +0000 (11:36 +0200)] 
patch 9.1.0776: test_strftime may fail because of missing TZ data

Problem:  test_strftime may fail because of missing TZ data
Solution: Use GMT offsets to validate timezone differences (James McCoy)

Some systems only provide timezones that follow the geographical region
naming (e.g. America/New_York) by default and require an additional
install for other names (like EST).

The GMT+<offset> format must always be honored, so use that to generate
distinct data for the test.

closes: #15848

Signed-off-by: James McCoy <jamessan@jamessan.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agotranslation(am): Add Armenian language translation
Gagik Hakobyan [Sat, 12 Oct 2024 09:29:08 +0000 (11:29 +0200)] 
translation(am): Add Armenian language translation

closes: #15853

Signed-off-by: Gagik Hakobyan <hakgagik@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0775: tests: not enough tests for setting options v9.1.0775
Milly [Sat, 12 Oct 2024 09:26:06 +0000 (11:26 +0200)] 
patch 9.1.0775: tests: not enough tests for setting options

Problem:  tests: not enough tests for setting options
Solution: Add more comprehensive tests to test_options (Milly).

closes: #15856

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 months agopatch 9.1.0774: "shellcmdline" doesn't work with getcompletion() v9.1.0774
zeertzjq [Thu, 10 Oct 2024 17:14:13 +0000 (19:14 +0200)] 
patch 9.1.0774: "shellcmdline" doesn't work with getcompletion()

Problem:  "shellcmdline" doesn't work with getcompletion().
Solution: Use set_context_for_wildcard_arg() (zeertzjq).

closes: #15834

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 months agopatch 9.1.0773: filetype: some Apache files are not recognized v9.1.0773
nisbet-hubbard [Thu, 10 Oct 2024 17:09:28 +0000 (19:09 +0200)] 
patch 9.1.0773: filetype: some Apache files are not recognized

Problem:  filetype: some Apache files are not recognized
Solution: Detect more config files from the Apache source
          distribution as filetype apache (nisbet-hubbard)

closes: #15810

Signed-off-by: nisbet-hubbard <87453615+nisbet-hubbard@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 months agopatch 9.1.0772: some missing changes from v9.1.0771 v9.1.0772
glepnir [Wed, 9 Oct 2024 18:19:25 +0000 (20:19 +0200)] 
patch 9.1.0772: some missing changes from v9.1.0771

Problem:  some missing changes from v9.1.0771
Solution: use correct highlighting attribute and adjust comments
          (glepnir)

closes: #15836

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 months agopatch 9.1.0771: completion attribute hl_group is confusing v9.1.0771
glepnir [Tue, 8 Oct 2024 20:26:44 +0000 (22:26 +0200)] 
patch 9.1.0771: completion attribute hl_group is confusing

Problem:  Currently completion attribute hl_group is combined with
          all items, which is redundant and confusing with kind_hlgroup
Solution: Renamed to abbr_hlgroup and combine it only with the abbr item
          (glepnir).

closes: #15818

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 months agopatch 9.1.0770: current command line completion is a bit limited v9.1.0770
Ruslan Russkikh [Tue, 8 Oct 2024 20:21:05 +0000 (22:21 +0200)] 
patch 9.1.0770: current command line completion is a bit limited

Problem:  current command completion is a bit limited
Solution: Add the shellcmdline completion type and getmdcomplpat()
          function (Ruslan Russkikh).

closes: #15823

Signed-off-by: Ruslan Russkikh <dvrussk@yandex.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>