0
0
mirror of https://github.com/vim/vim.git synced 2025-11-14 23:04:02 -05:00
Commit Graph

22424 Commits

Author SHA1 Message Date
Yegappan Lakshmanan
f09ff72d48 patch 9.1.1884: :defer an empty lambda causes a crash
Problem:  :defer an empty lambda causes a crash
          (Maxim Kim, after v9.1.1882)
Solution: Check for missing arguments (Yegappan Lakshmanan)

related: #18641
closes: #18653

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1884
2025-10-28 20:05:13 +00:00
Christian Brabandt
6be154f5e6 runtime(doc): revert wrong 'incsearch' description
This reverts commit 3fc00c05fb.

related: #18639

Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-28 19:48:19 +00:00
zeertzjq
e06e70f7b1 patch 9.1.1883: Wrong display with 'smoothscroll' with -diff
Problem:  Wrong display with 'smoothscroll' when FEAT_DIFF is disabled.
Solution: Use plines_correct_topline() (zeertzjq).

closes: #18649

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1883
2025-10-28 19:03:22 +00:00
Yegappan Lakshmanan
21ef3c6e59 patch 9.1.1882: Vim9: Not able to use a lambda with :defer
Problem:  Vim9: Not able to use a lambda with :defer
          (Maxim Kim)
Solution: Add support for this (Yegappan Lakshmanan)

fixes: #18626
closes: #18643

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1882
2025-10-27 18:07:52 +00:00
zeertzjq
58ab3438b7 runtime(netrw): fix misaligned comment after #18611
related" #18611
closes: #18644

Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-27 18:04:22 +00:00
Yee Cheng Chin
50ede52829 patch 9.1.1881: tests: test_popupwin fails after c8eeda9b
Problem:  tests: test_popupwin fails after c8eeda9b due to syntax
          highlighting change
Solution: Regenerate terminal dumps Test_popup_setbuf*dump
          (Yee Cheng Chin).

closes: #18646

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1881
2025-10-27 17:55:27 +00:00
Christian Brabandt
f11d9e4d28 runtime(doc): regenerate help tags file after eba51337
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-27 17:53:44 +00:00
Aaron Jacobs
eba51337d4 runtime(rust): Do not use rustfmt as 'formatprg' by default
This reverts commit 4ac995bf93.

This was added in #16807, with no explanation for why it was necessary beyond
"it's an example of an idea". It completely breaks `gq` for me—rustfmt doesn't
reflow comments so is not an appropriate tool here! Beyond that, formatting a
selection with rustfmt treats that selection as if it were an entire file,
throwing away any indentation.

For example, the commit causes `gq` to turn this:

```rust
pub fn foo() {
    // blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
}
```

into this:

```rust
pub fn foo() {
// blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
}

```

which is totally wrong. In contrast, if I clear `formatprg` then `gq` does the
right thing again:

```rust
pub fn foo() {
    // blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
    // blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
    // blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
    // blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
    // blah blah blah blah blah blah
}
```

related: #16967
related: #17055
closes: #18640

Signed-off-by: Aaron Jacobs <jacobsa@google.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-27 17:46:11 +00:00
kuuote
7d3b647f88 patch 9.1.1880: Allocation error with complete_info()
Problem:  Allocation error with complete_info()
          (after v9.1.1876)
Solution: Make sure length is positive (kuuote)

closes: #18640

Signed-off-by: kuuote <znmxodq1@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1880
2025-10-27 17:26:29 +00:00
Yegappan Lakshmanan
bd9155ebb6 patch 9.1.1879: Crash when using a lambda funcref with :defer
Problem:  Crash when using a lambda funcref with :defer
Solution: De-reference the partial correctly after invoking the deferred
          functions (Yegappan Lakshmanan).

closes: #18640

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1879
2025-10-26 20:03:18 +00:00
Riley Bruins
9fff99c3c2 patch 9.1.1878: filetype: Soy files are not recognized
Problem:  filetype: Soy files are not recognized
Solution: Detect *.soy files as soy filetype,
          include a soy filetype plugin (Riley Bruins)

closes: #18640

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1878
2025-10-26 20:00:03 +00:00
Christian Brabandt
6a8ab8f5d4 runtime(doc): update the :split help tags.
closes: #18640

Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-26 19:57:46 +00:00
Anttoni Erkkilä
61ef8a3db9 patch 9.1.1877: cindent: wrong indentation after an array declaration
Problem:  cindent: wrong indentation after an array declaration
Solution: check if the filetype if javascript before matching the syntax
          (Anttoni Erkkilä)

cindent matches a javascript syntax for C files causing wrong
indentation in the following case:
```
void foo() {
float a[5],
b;
}
```

closes: #18631

Signed-off-by: Anttoni Erkkilä <anttoni.erkkila@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1877
2025-10-26 19:46:38 +00:00
Doug Kearns
c8eeda9b15 runtime(doc): Improve header formatting
- Normalise header formatting and highlight all bylines.
- Remove broken email address from if_sniff.txt.

closes: #18601

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-26 19:29:28 +00:00
Christian Brabandt
3fc00c05fb runtime(doc): mention that 'incsearch' ignores addresses and offset
closes: #18639

Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-26 18:53:00 +00:00
Doug Kearns
8e600aded2 runtime(doc): Normalise heredoc end marker label at :help const
Match the name used at :help :let-heredoc, {endmarker}.

closes: #18638

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-26 18:44:19 +00:00
Girish Palya
ef5bf58d8c patch 9.1.1876: pre-inserted text not exposed in cmdcomplete_info()
Problem:  pre-inserted text not exposed in complete_info()
Solution: Add the pre-inserted text to the complete_info() Vim script
          function (Girish Palya)

closes: #18571

Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Feat: expose preinserted text in complete_info()

Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1876
2025-10-26 18:37:57 +00:00
Václav Kobera
f17f78c557 patch 9.1.1875: username parsing bug in netrw plugin
Problem:  username parsing bug in netrw plugin when using remote adding
          feature
Solution: Allow any characters except for "@" (Václav Kobera), add a
          test for the netrw plugin

closes: #18611

Signed-off-by: Václav Kobera <vasekobera@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1875
2025-10-26 18:21:04 +00:00
Girish Palya
f0e11d3279 patch 9.1.1874: short-description
Problem:  PMenuShadow overrides highlighting attributes
          (Maxim Kim)
Solution: Use hl_combine_attr() to combine popup attribute with shadow
          attribute (Girish Palya)

fixes: #18557
closes: #18634

Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1874
2025-10-26 13:52:03 +00:00
Doug Kearns
842c7788a5 runtime(vim): Update base syntax, improve :@ highlighting
- Highlight :@ as a normal Ex command rather than something special.
- Fix erroneous matching of the Ex command as a register variable.

closes: #18624

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-26 13:50:05 +00:00
Foxe Chen
00e8452191 patch 9.1.1873: Clipboard provider feature broke clipboard support
Problem:  Clipboard provider feature broke clipboard support
          (Yee Cheng Chin)
Solution: Revert clipboard changes (Foxe Chen).

fixes: #18600
closes: #18633

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1873
2025-10-26 13:46:05 +00:00
zeertzjq
97b6e8b424 patch 9.1.1872: Cmdline history not updated when mapping <Up> and <CR>
Problem:  Cmdline history not updated when mapping both <Up> and <CR>.
Solution: Consider the command typed when in Cmdline mode and there is
          no pending input (zeertzjq).

Although the existing behavior technically does match documentation, the
"completely come from mappings" part is a bit ambiguous, because one may
argue that the command doesn't completely come from mappings as long as
the user has typed a key in Cmdline mode.  I'm not entirely sure if this
change will cause problems, but it seems unlikely.

fixes: #2771
related: neovim/neovim#36256
closes: #18607

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1872
2025-10-26 13:29:09 +00:00
Maxim Kim
4eef8ba498 runtime(colors): Add PmenuBorder/PmenuShadow
closes: #18635

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-26 13:24:53 +00:00
James McCoy
d535e5852b runtime(debversions): Add resolute (26.04) as Ubuntu release name
closes: #18637

Signed-off-by: James McCoy <jamessan@jamessan.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-26 13:24:04 +00:00
Aliaksei Budavei
b32da7de63 CI: Include a job index in names of collected artifacts
And include "extra" Linux elements to further disambiguate
archive names.

The current naming of artifacts is inadequate when it comes
to files whose differing name-parts only come from array
values, as arrays are not automatically converted to string.
For example, both artifacts for failing "socketserver" and
"no_x11" CI jobs will claim the same name, and whichever job
finishes last is allowed to overwrite another matching name
artifact.

Reference:
https://docs.github.com/en/actions/reference/workflows-and-actions/expressions#functions

closes: #18556

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-25 14:21:56 +00:00
Yiyang Wu
7193cab6c8 runtime(make): Prevent makeTargetinDefine matching extra line
This fixes a bug introduced in 2a33b499a3:
When makeTargetinDefine ends with makeIdent, makeSpecTarget or
makeComment, the following line is also matched as makeTargetinDefine.

So, add keepend to prevent that just as makeTarget does.

related: #18403
closes: #18570

Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Roland Hieber <rohieb+vim-iR0jGdkV@rohieb.name>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-25 14:19:07 +00:00
Doug Kearns
418ff5185e runtime(doc): Improve highlighting of the +feature-list table
Fix false positives for headings and command specification counts.

closes: #18603

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-25 14:15:15 +00:00
zeertzjq
826326f13b patch 9.1.1871: Wrong 'showcmd' in the cmdwin
Problem:  Wrong 'showcmd' in the command-line window.
Solution: Clear 'showcmd' when entering cmdwin (zeertzjq).

related: neovim/neovim#36271
closes: #18616

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1871
2025-10-25 03:40:45 +00:00
Anton Parkhomenko
bbf4a10fe4 runtime(unison): update syntax from upstream repository
closes: #18623

Signed-off-by: Anton Parkhomenko <mailbox@chuwy.me>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-25 03:39:08 +00:00
Doug Kearns
7bb56b49ef runtime(doc): Fix option markup at :help 'pumborder'
Remove the redundant helpHyperTextJump markup around options.  Options
are never wrapped as jumps.

See :help help-writing (TAGS section)

closes: #18619

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-25 03:37:07 +00:00
Phạm Bình An
9978bb77c6 patch 9.1.1870: :Tutor may not work as expected
Problem:  :Tutor may not work as expected
Solution: set buftype=nowrite instead of nofile
          (Phạm Bình An)

closes: #18613

Signed-off-by: Phạm Bình An <phambinhanctb2004@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1870
2025-10-25 03:33:12 +00:00
Fabian Eberts
0ef50d9d8d runtime(tutor): Update German translation for the tutor
closes: #18625

Signed-off-by: Fabian Eberts <64541491+feberts@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-24 15:48:45 +00:00
Yee Cheng Chin
6cb995970e patch 9.1.1869: tests: test failures with Python 3.14 and test_python3
Problem:  tests: test failures with Python 3.14 and test_python3
Solution: Adjust the expected error message (Yee Cheng Chin)

Python 3.14 changed the error message from "argument must be 2-item
sequence" to "argument must be 2-item tuple". Fix test to account for
that. Otherwise the error message for the `vim.current.window.cursor =
True` line would not match.

closes: #18629

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1869
2025-10-24 15:40:09 +00:00
zeertzjq
0124320c97 patch 9.1.1868: v:register is wrong in v_: command
Problem:  v:register is wrong in v_: command (after 9.1.1858).
Solution: Don't reset v:register for OP_COLON (zeertzjq)

related: https://github.com/vim/vim/pull/18583#issuecomment-3418030021

closes: #18597

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1868
2025-10-18 14:37:48 +00:00
Ola Söder
5932ed33f7 patch 9.1.1867: HAVE_STDARG_H still defined
Problem:  HAVE_STDARG_H still defined
          (after v7.4.1216)
Solution: Remove all remaining occurrences of HAVE_STDARG_H
          (Ola Söder)

closes: #18593

Signed-off-by: Ola Söder <rolfkopman@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1867
2025-10-18 14:30:10 +00:00
Ola Söder
3b11759c7c patch 9.1.1866: HAVE_STRCSPN define is unused
Problem:  HAVE_STRCSPN define is unused
Solution: Remove all HAVE_STRCSPN defines
          (Ola Söder)

closes: #18592

Signed-off-by: Ola Söder <rolfkopman@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1866
2025-10-18 14:04:28 +00:00
Hirohito Higashi
5b5290ec02 patch 9.1.1865: tests: do not notice lines containing only a tab
Problem:  tests: test_codestyle does not notice lines containing only a
          tab
Solution: Fix the whitespace issue in eval.txt, update test_codestyle to
          notice such issues (Hirohito Higashi)

closes: #18595

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1865
2025-10-18 13:57:53 +00:00
Hirohito Higashi
1b565eee6d Fix incorrect spelling of Vim script and Vim9 script
closes: #18591

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-17 17:50:29 +00:00
Foxe Chen
6582299b8d patch 9.1.1864: tests: Clipboard provider feature test failure
Problem:  tests: Clipboard provider feature test failure
Solution: Check in the test that the + clipboard register is available,
          fix compile warning (Foxe Chen)

closes: #18586

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1864
2025-10-17 17:30:43 +00:00
Maxim Kim
30ff1e3b02 runtime(vimcomplete): do not complete 'shellcmd' on WSL and Windows
- shellcmd completion is VERY slow on both WSL and Windows, e.g. `term
  something` or `!something` might take ~10 seconds to show first
  results. Do not complete it there.

- revert previous change to not complete on whitespace, do not complete
  on *empty* lines instead.

closes: #18568

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-16 19:17:02 +00:00
Foxe Chen
f22cedd75f patch 9.1.1863: Cannot test for working "+" register
Problem:  Cannot test for working "+" register
Solution: Add a few more feature tests (Foxe Chen)

closes: #18541

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1863
2025-10-16 19:11:37 +00:00
Foxe Chen
18d57a1b4c patch 9.1.1862: wrong ifdefs for clipboard provider
Problem:  Wrong ifdefs for clipboard provider (after v9.1.1857)
Solution: Update ifdefs (Foxe Chen)

`clip_mch_own_selection()` should only be compiled if there is:

- No Wayland or X11 or clipboard provider support
- If not on UNIX (except MacOS) and clipboard provider feature is
  enabled.

closes: #18574

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1862
2025-10-16 18:57:20 +00:00
Maxim Kim
a30cf0b3ac runtime(odin): fix indent for mis-identified case statements
related: habamax/vim-odin#11
closes: #18578

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-16 18:53:19 +00:00
Ola Söder
1c9135a362 patch 9.1.1861: Amiga: Locating runtime dir and rc files can be simplified
Problem:  Amiga: Locating runtime directory and rc files can be
          simplified.
Solution: Use assigns since it's simpler and more in line with
          how other Amiga applications work (Ola Söder).

closes: #18581

Signed-off-by: Ola Söder <rolfkopman@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1861
2025-10-16 18:48:21 +00:00
Foxe Chen
761a484e12 patch 9.1.1860: clipboard register "+" enabled with cplipboard provider feature
Problem:  clipboard register "+" enabled with cplipboard provider feature
          (BenYip, after v9.1.1857)
Solution: Don't make clipboard provider enable plus register on UNIX
          (Foxe Chen)

fixes: #18580
closes: #18580

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1860
2025-10-16 18:41:02 +00:00
Maxim Kim
6180d65751 patch 9.1.1859: completion: whitespace not cleared with 'ai'
Problem:  completion: whitespace not cleared with 'ai'
Solution: Remove spaces added by 'autoindent' when autocomplete is set
          and restore did_ai in ins_compl_start() (Maxim Kim)

fixes #18560
closes: #18582

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1859
2025-10-16 18:32:21 +00:00
zeertzjq
b3b47e540d patch 9.1.1858: v:register not reset after Visual mode command
Problem:  v:register not reset after Visual mode command.
          (laktak)
Solution: Reset v:register if Visual mode was active before
          do_pending_operator() (zeertzjq)

fixes: #18579
related: #5305
closes: #18583

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1858
2025-10-16 18:17:45 +00:00
Foxe Chen
67860efe5b patch 9.1.1857: Missing clipboard provider support
Problem:  Missing clipboard provider support
          (lilydjwg)
Solution: Add clipboard provider feature
          (Foxe Chen)

fixes: #12419
closes: #17998

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1857
2025-10-14 19:35:17 +00:00
Girish Palya
1a09f11f5d patch 9.1.1856: cannot style popup window (border, shadow, etc)
Problem:  cannot style popup window (border, shadow, etc)
Solution: Extend the 'completepopup' option with additional properties
          (Girish Palya)

This patch extends the 'completepopup' option with additional settings
to allow more configuration of info popup window.

New values:
```
- close           "on" (default) or "off"
- resize          "on" (default) or "off"
- borderchars     specify eight characters (separated by semicolons) to
                  draw the popup border: top, right, bottom, left,
                  topleft, topright, botright, botleft.
- borderhighlight highlight group for the popup border characters
- shadow          pum shadow
```

closes: #18487

Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1856
2025-10-14 18:48:36 +00:00
Christian Brabandt
e15cd0f065 patch 9.1.1855: Makefile: using non-portable syntax
Problem:  Makefile: using non-portable syntax
          (Jonathan Schleifer)
Solution: Remove duplicate parenthesis

closes: #18542

Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1855
2025-10-14 18:35:37 +00:00