]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
13 months agoruntime(netrw): fix regression with x mapping on Cygwin
Christian Brabandt [Wed, 30 Oct 2024 17:36:20 +0000 (18:36 +0100)] 
runtime(netrw): fix regression with x mapping on Cygwin

related: #13687

Co-authored-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agoruntime(netrw): fix filetype detection for remote files
Christian Brabandt [Wed, 30 Oct 2024 17:27:03 +0000 (18:27 +0100)] 
runtime(netrw): fix filetype detection for remote files

fixes: #15961

while at it, remove the Decho comments in the s:NetrwOptionsRestore()
function

Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agopatch 9.1.0822: topline might be changed in diff mode unexpectedly v9.1.0822
Christian Brabandt [Tue, 29 Oct 2024 19:29:04 +0000 (20:29 +0100)] 
patch 9.1.0822: topline might be changed in diff mode unexpectedly

Problem:  topline might be changed in diff mode unexpectedly
          (Jaehwang Jung)
Solution: do not re-calculate topline, when using line() func
          in diff mode.

fixes: #15812
closes: #15950

Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agoCI: huge linux builds should also run syntax & indent tests
Christian Brabandt [Tue, 29 Oct 2024 19:21:42 +0000 (20:21 +0100)] 
CI: huge linux builds should also run syntax & indent tests

closes: #15960

Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agopatch 9.1.0821: 'findexpr' completion doesn't set v:fname to cmdline argument v9.1.0821
zeertzjq [Mon, 28 Oct 2024 21:05:26 +0000 (22:05 +0100)] 
patch 9.1.0821: 'findexpr' completion doesn't set v:fname to cmdline argument

Problem:  'findexpr' completion doesn't set v:fname to cmdline argument.
Solution: Set v:fname to the cmdline argument as-is (zeertzjq).

closes: #15934

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agopatch 9.1.0820: tests: Mac OS tests are too flaky v9.1.0820
Milly [Mon, 28 Oct 2024 20:56:14 +0000 (21:56 +0100)] 
patch 9.1.0820: tests: Mac OS tests are too flaky

Problem:  tests: Mac OS tests are too flaky
Solution: Increase max test timeout to 25 minutes,
          allow up to 10 retries on Mac OS runners,
          refactor runtest.vim (Milly).

closes: #15940

Co-authored-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agoruntime(awk): Highlight more awk comments in syntax script
John M Devin [Mon, 28 Oct 2024 20:46:09 +0000 (21:46 +0100)] 
runtime(awk): Highlight more awk comments in syntax script

closes: #15944

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>
13 months agoruntime(netrw): add missing change for s:redir()
Christian Brabandt [Mon, 28 Oct 2024 20:23:54 +0000 (21:23 +0100)] 
runtime(netrw): add missing change for s:redir()

Somehow, that change got lost in commit 70197885

Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agopatch 9.1.0819: tests: using findexpr and imported func not tested v9.1.0819
Yegappan Lakshmanan [Mon, 28 Oct 2024 20:01:28 +0000 (21:01 +0100)] 
patch 9.1.0819: tests: using findexpr and imported func not tested

Problem:  tests: need a test for findexpr and vim9 imported func
Solution: Add a test for 'findexpr' and Vim9 imported script
          (Yegappan Lakshmanan)

closes: #15954

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agoruntime(netrw): improve netrw's open-handling further
Enno [Mon, 28 Oct 2024 19:47:25 +0000 (20:47 +0100)] 
runtime(netrw): improve netrw's open-handling further

closes: #15956

Signed-off-by: Enno <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agoruntime(netrw): fix syntax error in netrwPlugin.vim
Christian Brabandt [Mon, 28 Oct 2024 06:03:24 +0000 (07:03 +0100)] 
runtime(netrw): fix syntax error in netrwPlugin.vim

Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agoruntime(netrw): simplify gx file handling
Konfekt [Sun, 27 Oct 2024 21:16:49 +0000 (22:16 +0100)] 
runtime(netrw): simplify gx file handling

It did not work very well, at least on Debian 12, and I am not sure Git
Bash and WSL, for example, were taken care of as maintenance stalled.

The whole logic was somewhat convoluted with some parts repeatedly invoking
failed commands.

The file handling was outdated, for example, nowadays Netscape is rarely
used, and also opinionated, for example mainly Microsoft Paint and Gimp for
Image files.

Instead, let's use (xdg-)open and similar commands on other systems
which respects the user's preferences.

closes: #15721

Co-authored-by: Luca Saccarola <96259932+saccarosium@users.noreply.github.com>
Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agopatch 9.1.0818: some global functions are only used in single files v9.1.0818
Yegappan Lakshmanan [Sun, 27 Oct 2024 20:54:11 +0000 (21:54 +0100)] 
patch 9.1.0818: some global functions are only used in single files

Problem:  some global functions are only used in single files
Solution: refactor code slightly and make some more functions static
          (Yegappan Lakshmanan)

closes: #15951

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agopatch 9.1.0817: termdebug: cannot evaluate expr in a popup v9.1.0817
Peter Wolf [Sun, 27 Oct 2024 20:51:14 +0000 (21:51 +0100)] 
patch 9.1.0817: termdebug: cannot evaluate expr in a popup

Problem:  termdebug: cannot evaluate expr in a popup
Solution: enhance termdebug plugin and allow to evaluate expressions in
          a popup window, add a unit test (Peter Wolf).

fixes: #15877
closes: #15933

Signed-off-by: Peter Wolf <pwolf2310@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agoruntime(defaults): Detect putty terminal and switch to dark background
Christian Brabandt [Sun, 27 Oct 2024 20:33:09 +0000 (21:33 +0100)] 
runtime(defaults): Detect putty terminal and switch to dark background

Vim tries to determine the default background and checks for $TERM
and even checks for the "putty" value. But unfortunately, putty by
default uses "xterm" as $TERM value and as such Vim uses a "light"
background.

So use a TermResponse autocommand to set the background for putty back
to dark.

Note: this only works on non-tiny builds and when defaults.vim is in
use.

Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agopatch 9.1.0816: tests: not clear what tests cause asan failures v9.1.0816
Christian Brabandt [Sun, 27 Oct 2024 20:15:50 +0000 (21:15 +0100)] 
patch 9.1.0816: tests: not clear what tests cause asan failures

Problem:  tests: not clear what tests cause asan failures
Solution: append testname to $ASAN_OPTIONS

Mention what test causes ASAN failures by appending the testname
to log_path in $ASAN_OPTIONS/$UBSAN_OPTIONS. This assumes 'log_path' is
always the last sub-option in $ASAN_OPTIONS.

While at it, also make the CI run with `-O0` instead of `-O1` when ASAN
is enable since this causes line numbers to disappear.

closes: #15927

Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agoruntime(doc): Remove some completed items from todo.txt
Yegappan Lakshmanan [Sun, 27 Oct 2024 19:46:42 +0000 (20:46 +0100)] 
runtime(doc): Remove some completed items from todo.txt

closes: #15949

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agopatch 9.1.0815: "above" virtual text causes wrong 'colorcolumn' position v9.1.0815
zeertzjq [Sun, 27 Oct 2024 18:23:34 +0000 (19:23 +0100)] 
patch 9.1.0815: "above" virtual text causes wrong 'colorcolumn' position

Problem:  "above" virtual text causes wrong 'colorcolumn' position.
          (@matrdr)
Solution: Use the number of cells instead of bytes for vcol_off_tp.
          (zeertzjq)

fixes: #15946
closes: #15948

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agoruntime(syntax-tests): tiny vim fails because of line-continuation
Christian Brabandt [Thu, 24 Oct 2024 21:03:10 +0000 (23:03 +0200)] 
runtime(syntax-tests): tiny vim fails because of line-continuation

Problem:  tiny vim fails because of line-continuation, although
          the test script should be skipped for non-eval builds of Vim.
Solution: :set cpo&vim

Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agopatch 9.1.0814: mapset() may remove unrelated mapping v9.1.0814
zeertzjq [Thu, 24 Oct 2024 19:43:43 +0000 (21:43 +0200)] 
patch 9.1.0814: mapset() may remove unrelated mapping

Problem:  mapset() may remove unrelated mapping whose {rhs} matches the
          restored mapping's {lhs}.
Solution: only match by {lhs} when unmapping for mapset() (zeertzjq).

closes: #15935

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agopatch 9.1.0813: no error handling with setglobal and number types v9.1.0813
Milly [Wed, 23 Oct 2024 19:42:41 +0000 (21:42 +0200)] 
patch 9.1.0813: no error handling with setglobal and number types

Problem:  no error handling with setglobal and number types
Solution: validate values when using :setglobal with number option types
          (Milly)

closes: #15928

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agopatch 9.1.0812: Coverity warns about dereferencing NULL ptr v9.1.0812
Christian Brabandt [Wed, 23 Oct 2024 19:32:31 +0000 (21:32 +0200)] 
patch 9.1.0812: Coverity warns about dereferencing NULL ptr

Problem:  Coverity warns about dereferencing NULL ptr
          in check_colorcolumn()
Solution: verify that wp is not null before accessing it

related: #15914

Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agopatch 9.1.0811: :find expansion does not consider 'findexpr' v9.1.0811
Yegappan Lakshmanan [Wed, 23 Oct 2024 19:06:10 +0000 (21:06 +0200)] 
patch 9.1.0811: :find expansion does not consider 'findexpr'

Problem:  :find expansion does not consider 'findexpr'
Solution: Support expanding :find command argument using 'findexpr'
          (Yegappan Lakshmanan)

closes: #15929

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agopatch 9.1.0810: cannot easily adjust the |:find| command v9.1.0810
Yegappan Lakshmanan [Tue, 22 Oct 2024 21:42:20 +0000 (23:42 +0200)] 
patch 9.1.0810: cannot easily adjust the |:find| command

Problem:  cannot easily adjust the |:find| command
Solution: Add support for the 'findexpr' option (Yegappan Lakshmanan)

closes: #15901
closes: #15905

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agopatch 9.1.0809: filetype: petalinux config files not recognized v9.1.0809
Wu, Zhenyu [Tue, 22 Oct 2024 21:21:49 +0000 (23:21 +0200)] 
patch 9.1.0809: filetype: petalinux config files not recognized

Problem:  filetype: petalinux config files not recognized
Solution: detect 'project-spec/*.conf' files as bitbake filetype
          (Wu, Zhenyu)

References:
https://www.amd.com/en/products/software/adaptive-socs-and-fpgas/embedded-software/petalinux-sdk.html

closes: #15926

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agopatch 9.1.0808: Terminal scrollback doesn't shrink when decreasing 'termwinscroll' v9.1.0808
Milly [Tue, 22 Oct 2024 21:17:45 +0000 (23:17 +0200)] 
patch 9.1.0808: Terminal scrollback doesn't shrink when decreasing 'termwinscroll'

Problem:  Terminal scrollback doesn't shrink when reducing
          'termwinscroll'
Solution: Check if option value was decreased (Milly).

closes: #15904

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agopatch 9.1.0807: tests: having 'nolist' in modelines isn't always desired v9.1.0807
zeertzjq [Tue, 22 Oct 2024 21:11:27 +0000 (23:11 +0200)] 
patch 9.1.0807: tests: having 'nolist' in modelines isn't always desired

Problem:  tests: having 'nolist' in modelines isn't always desired
Solution: remove 'nolist' from modeline (zeertzjq)

closes: #15910

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agopatch 9.1.0806: tests: no error check when setting global 'briopt' v9.1.0806
Milly [Tue, 22 Oct 2024 20:59:39 +0000 (22:59 +0200)] 
patch 9.1.0806: tests: no error check when setting global 'briopt'

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

closes: #15911

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 months agopatch 9.1.0805: tests: minor issues in gen_opt_test.vim v9.1.0805
Milly [Tue, 22 Oct 2024 20:53:01 +0000 (22:53 +0200)] 
patch 9.1.0805: tests: minor issues in gen_opt_test.vim

Problem:  tests: minor issues in gen_opt_test.vim
Solution: fix restore value for 'undolevels', fix comment, fix
          wrong cpo value, add equality test for global-local options on
          switchback (Milly).

closes: #15913

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>