]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
9 months agopatch 9.1.0839: filetype: leo files are not recognized v9.1.0839
Riley Bruins [Mon, 4 Nov 2024 18:58:45 +0000 (19:58 +0100)] 
patch 9.1.0839: filetype: leo files are not recognized

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

References:
https://github.com/ProvableHQ/leo

closes: #15988

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(cook): include cook filetype plugin
Riley Bruins [Mon, 4 Nov 2024 18:50:47 +0000 (19:50 +0100)] 
runtime(cook): include cook filetype plugin

References:
https://github.com/cooklang/spec?tab=readme-ov-file#comments

closes: #15989

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(debversions): Update Debian versions
James McCoy [Mon, 4 Nov 2024 18:48:37 +0000 (19:48 +0100)] 
runtime(debversions): Update Debian versions

- Move mantic to unsupported
- Reorder names to maintain alphabetic order
- Bump date to submit upstream

closes: #15991

Signed-off-by: James McCoy <jamessan@debian.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0838: vimtutor is bash-specific v9.1.0838
Aliaksei Budavei [Mon, 4 Nov 2024 18:43:22 +0000 (19:43 +0100)] 
patch 9.1.0838: vimtutor is bash-specific

Problem:  vimtutor is bash-specific (after 17c71daf83f45c3ee8)
Solution: port back to POSIX sh (Aliaksei Budavei).

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(doc): add help specific modeline to pi_tutor.txt
Christian Brabandt [Mon, 4 Nov 2024 18:37:24 +0000 (19:37 +0100)] 
runtime(doc): add help specific modeline to pi_tutor.txt

related: #6414

Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoFilelist: vimtutor chapter 2 is missing in Filelist
Christian Brabandt [Sun, 3 Nov 2024 20:21:23 +0000 (21:21 +0100)] 
Filelist: vimtutor chapter 2 is missing in Filelist

Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0837: cross-compiling has some issues v9.1.0837
Jonas Sortie Termansen [Sun, 3 Nov 2024 19:58:21 +0000 (20:58 +0100)] 
patch 9.1.0837: cross-compiling has some issues

Problem:  Cross-compiling to good modern operating systems is difficult as
          configure assumes obscure bugs are present by default. However,
          most core autoconf-based packages today assume features work
          when in doubt, making cross-compilation easier.
Solution: Assume features work by default and continue to issue a warning
          with the appropriate cache variable. This solution shifts the
          burden onto the users of rare buggy operating systems and
          makes cross-compilation work out of the box for everyone else.

The vim_cv_terminfo test was accidentally negated, where the yes case
was in the error handler, leading to false positives if the test program
failed to compile.

Split the timer_create detection into two phases: First locating the
the library containing timer_create, and then another check to check
if timer_create works to properly support cross-compilation.

Signed-off-by: Jonas 'Sortie' Termansen <sortie@maxsi.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(vimtutor): Add a second chapter
Paul Desmond Parker [Sun, 3 Nov 2024 19:47:53 +0000 (20:47 +0100)] 
runtime(vimtutor): Add a second chapter

fixes: #5719
closes: #5729

Signed-off-by: Paul Desmond Parker <pauldesmondparker@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0836: The vimtutor can be improved v9.1.0836
Yegappan Lakshmanan [Sun, 3 Nov 2024 09:49:23 +0000 (10:49 +0100)] 
patch 9.1.0836: The vimtutor can be improved

Problem:  the vimtutor can be improved
Solution: port and include the interactive vimtutor plugin from Neovim
          (by Felipe Morales) (Yegappan Lakshmanan)

closes: #6414

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
9 months agopatch 9.1.0835: :setglobal doesn't work properly for 'ffu' and 'tsrfu' v9.1.0835
zeertzjq [Sun, 3 Nov 2024 08:23:33 +0000 (09:23 +0100)] 
patch 9.1.0835: :setglobal doesn't work properly for 'ffu' and 'tsrfu'

Problem:  :setglobal doesn't work properly for 'ffu' and 'tsrfu' when
          the local value is set (after v9.1.0831)
Solution: Check os_flags instead of buffer option variable (zeertzjq).

closes: #15980

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0834: tests: 2html test fails v9.1.0834
Aliaksei Budavei [Sun, 3 Nov 2024 08:19:14 +0000 (09:19 +0100)] 
patch 9.1.0834: tests: 2html test fails

Problem:  tests: 2html test fails (after b256221e8377)
Solution: Adjust testdir/samples/Test_tohtml_basic.c.html
          (Aliaksei Budavei)

closes: #15981

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0833: CI: recent ASAN changes do not work for indent tests v9.1.0833
Aliaksei Budavei [Sun, 3 Nov 2024 08:15:35 +0000 (09:15 +0100)] 
patch 9.1.0833: CI: recent ASAN changes do not work for indent tests

Problem:  CI: recent ASAN changes do not work for indent tests
Solution: Move code to runtime/indent/testdir/runtest.vim
          (Aliaksei Budavei)

closes: #15981

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0832: :set doesn't work for 'cot' and 'bkc' after :setlocal v9.1.0832
zeertzjq [Sun, 3 Nov 2024 08:10:50 +0000 (09:10 +0100)] 
patch 9.1.0832: :set doesn't work for 'cot' and 'bkc' after :setlocal

Problem:  :set doesn't work for 'cot' and 'bkc' after :setlocal.
Solution: clear the local flags when using :set (zeertzjq).

closes: #15981

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(doc): update help-toc description
Christian Brabandt [Sun, 3 Nov 2024 08:06:10 +0000 (09:06 +0100)] 
runtime(doc): update help-toc description

related: #10446

Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(2html): Make links use color scheme colors in TOhtml
Max Bernstein [Sat, 2 Nov 2024 17:48:53 +0000 (18:48 +0100)] 
runtime(2html): Make links use color scheme colors in TOhtml

The browser-default dark blue/purple colors don't fit in with most color
schemes and also are unreadable if the color scheme has a dark
background.

closes: #10191

Signed-off-by: Max Bernstein <tekknolagi@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0831: 'findexpr' can't be used as lambad or Funcref v9.1.0831
Yegappan Lakshmanan [Sat, 2 Nov 2024 17:40:10 +0000 (18:40 +0100)] 
patch 9.1.0831: 'findexpr' can't be used as lambad or Funcref

Problem:  'findexpr' can't be used for lambads
          (Justin Keyes)
Solution: Replace the findexpr option with the findfunc option
          (Yegappan Lakshmanan)

related: #15905
closes: #15976

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoFilelist: include helptoc package
Christian Brabandt [Sat, 2 Nov 2024 17:20:30 +0000 (18:20 +0100)] 
Filelist: include helptoc package

Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(doc): include a TOC Vim9 plugin
lagygoill [Sat, 2 Nov 2024 16:58:01 +0000 (17:58 +0100)] 
runtime(doc): include a TOC Vim9 plugin

closes: #10446

See :h help-TOC

Signed-off-by: lagygoill <lacygoill@lacygoill.me>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoFilelist: ignore .git-blame-ignore-revs
Christian Brabandt [Sat, 2 Nov 2024 15:49:57 +0000 (16:49 +0100)] 
Filelist: ignore .git-blame-ignore-revs

Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0830: using wrong highlight group for spaces for popupmenu v9.1.0830
glepnir [Sat, 2 Nov 2024 15:45:01 +0000 (16:45 +0100)] 
patch 9.1.0830: using wrong highlight group for spaces for popupmenu

Problem:  using wrong highlight group for spaces for popupmenu
Solution: use original attribute instead of combined attributed
          (glepnir)

closes: #15978

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(typst): synchronize updates from the upstream typst.vim
Yinzuo Jiang [Sat, 2 Nov 2024 15:34:40 +0000 (16:34 +0100)] 
runtime(typst): synchronize updates from the upstream typst.vim

2 commits included from the upstream:

- https://github.com/kaarmu/typst.vim/commit/2a4a0e0662f2f882403af7200b4249c564a621ab
- https://github.com/kaarmu/typst.vim/commit/50e89f481102d5c9ef6990b9f8086c0c7d64bff6

Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Signed-off-by: Gregory Anders <greg@gpanders.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agogit: ignore reformatting commit for git-blame (after v9.1.0829)
Christian Brabandt [Sat, 2 Nov 2024 15:29:55 +0000 (16:29 +0100)] 
git: ignore reformatting commit for git-blame (after v9.1.0829)

See:
https://git-scm.com/docs/git-config#Documentation/git-config.txt-blameignoreRevsFile

Enable this using the following command in your copy:
git config blame.ignoreRevsFile .git-blame-ignore-revs

Github should pick it up automatically

Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0829: Vim source code uses a mix of tabs and spaces v9.1.0829
Luca Saccarola [Sat, 2 Nov 2024 15:22:45 +0000 (16:22 +0100)] 
patch 9.1.0829: Vim source code uses a mix of tabs and spaces

Problem:  Vim source code uses a mix of tabs and spaces
Solution: Expand tabs in sound.c, this is an experiment
          (Luca Saccarola)

closes: #15969

Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0828: string_T struct could be used more often v9.1.0828
John Marriott [Sat, 2 Nov 2024 14:59:01 +0000 (15:59 +0100)] 
patch 9.1.0828: string_T struct could be used more often

Problem:  string_T struct could be used more often
Solution: Refactor code and make use of string_T struct
          for key-value pairs, reformat overlong lines
          (John Marriott)

closes: #15975

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0827: CI: tests can be improved v9.1.0827
Aliaksei Budavei [Sat, 2 Nov 2024 14:51:14 +0000 (15:51 +0100)] 
patch 9.1.0827: CI: tests can be improved

Problem:  CI: tests can be improved
Solution: collect failed indent tests, raise timeout for search()
          functions when using ASAN/Valgrind (Aliaksei Budavei)

ASan-instrumented Vim builds tend to run slower (x2) than
non-instrumented Vim builds and occasionally make indent
tests fail when "search*()" functions time out and give up
further execution.

Reference:
https://github.com/google/sanitizers/wiki/AddressSanitizer

closes: #15974

Co-authored-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(doc): remove stray sentence in pi_netrw.txt
S. B. Tam [Sat, 2 Nov 2024 14:48:54 +0000 (15:48 +0100)] 
runtime(doc): remove stray sentence in pi_netrw.txt

closes: #15971

Signed-off-by: S. B. Tam <cpplearner@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0826: filetype: sway files are not recognized v9.1.0826
Riley Bruins [Sat, 2 Nov 2024 14:44:43 +0000 (15:44 +0100)] 
patch 9.1.0826: filetype: sway files are not recognized

Problem:  filetype: sway files are not recognized
Solution: detect '*.sw' files as sway filetype, include
          a filetype plugin (Riley Bruins)

References:
 https://github.com/FuelLabs/sway.

Comments taken from their syntax documentation. File extension taken
from the same documentation/GitHub's own recognition of these file types

closes: #15973

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(doc): Include netrw-gp in TOC
Ernesto Elsäßer [Fri, 1 Nov 2024 22:17:03 +0000 (23:17 +0100)] 
runtime(doc): Include netrw-gp in TOC

closes: #7627

Signed-off-by: Ernesto Elsäßer <ernesto.elsaesser@me.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(doc): mention 'iskeyword' at :h charclass()
Christian Brabandt [Fri, 1 Nov 2024 08:33:00 +0000 (09:33 +0100)] 
runtime(doc): mention 'iskeyword' at :h charclass()

fixes: #15965

Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(doc): update help tags
Christian Brabandt [Thu, 31 Oct 2024 10:08:40 +0000 (11:08 +0100)] 
runtime(doc): update help tags

Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0825: compile error for non-diff builds v9.1.0825
John Marriott [Thu, 31 Oct 2024 09:53:43 +0000 (10:53 +0100)] 
patch 9.1.0825: compile error for non-diff builds

Problem:  compile error for non-diff builds
          (after v9.1.0822)
Solution: Add #ifdef FEAT_DIFF (John Marriott)

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(netrw): fix E874 when browsing remote directory which contains `~` character
Tom Benham [Thu, 31 Oct 2024 09:47:23 +0000 (10:47 +0100)] 
runtime(netrw): fix E874 when browsing remote directory which contains `~` character

closes: #15964

Signed-off-by: Tom Benham <tom.benham13@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(doc): update coding style documentation
Luca Saccarola [Thu, 31 Oct 2024 09:28:40 +0000 (10:28 +0100)] 
runtime(doc): update coding style documentation

closes: #15939

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Luca Saccarola <github.e41mv@aleeas.com>
9 months agoruntime(debversions): Add plucky (25.04) as Ubuntu release name
Simon Quigley [Thu, 31 Oct 2024 09:17:08 +0000 (10:17 +0100)] 
runtime(debversions): Add plucky (25.04) as Ubuntu release name

closes: #15882

Signed-off-by: Simon Quigley <tsimonq2@ubuntu.com>
Signed-off-by: James McCoy <jamessan@jamessan.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0824: too many strlen() calls in register.c v9.1.0824
John Marriott [Thu, 31 Oct 2024 09:06:54 +0000 (10:06 +0100)] 
patch 9.1.0824: too many strlen() calls in register.c

Problem:  too many strlen() calls in register.c
Solution: refactor code, add string_T struct to keep track
          of string lengths (John Marriott)

closes: #15952

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agopatch 9.1.0823: filetype: Zephyr overlay files not recognized v9.1.0823
Xudong Zheng [Thu, 31 Oct 2024 08:32:25 +0000 (09:32 +0100)] 
patch 9.1.0823: filetype: Zephyr overlay files not recognized

Problem:  filetype: Zephyr overlay files not recognized
Solution: detect '*.overlay' files as dts filetype,
          include syntax tests for DTS files
          (Xudong Zheng)

Reference:
https://docs.zephyrproject.org/latest/build/dts/howtos.html

closes: #15963

Signed-off-by: Xudong Zheng <7pkvm5aw@slicealias.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(doc): Clean up minor formatting issues for builtin functions
Yee Cheng Chin [Thu, 31 Oct 2024 08:25:09 +0000 (09:25 +0100)] 
runtime(doc): Clean up minor formatting issues for builtin functions

closes: #15966

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 months agoruntime(netrw): make :Launch/Open autoloadable
Christian Brabandt [Thu, 31 Oct 2024 08:21:23 +0000 (09:21 +0100)] 
runtime(netrw): make :Launch/Open autoloadable

fixes: #15959
closes: #15962

Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
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>