0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00
Commit Graph

22007 Commits

Author SHA1 Message Date
zeertzjq
5355e81868 patch 9.1.1713: filetype: fvwm2m4 files are no longer detected
Problem:  filetype: fvwm2m4 files are no longer recognized
          (after 9.1.1687).
Solution: Add a special case in m4 filetype detection (zeertzjq).

closes: #18146

Co-authored-by: Damien Lejay <damien@lejay.be>
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1713
2025-08-29 18:32:41 +02:00
Julio B
99af7690eb patch 9.1.1712: Screen not redrawn properly on t_RB response
Problem:  screen not redrawn properly on t_RB response (after v9.1.1703)
Solution: Call redraw_asap() if necessary (Julio B)

closes: #18149

Signed-off-by: Julio B <julio.bacel@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1712
2025-08-29 18:25:50 +02:00
Foxe Chen
8843cb2b3b patch 9.1.1711: Missing type cast in clipboard.c
Problem:  Missing type cast in clipboard.c
          (Yegappan Lakshmanan, after v9.1.1704)
Solution: Add back the type cast (Foxe Chen)

closes: #18148

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1711
2025-08-29 18:20:23 +02:00
Doug Kearns
5d8098b117 runtime(doc): Add [range] spec to :help :tcl and :help :tclfile
A range is allowed for all :tcl* commands.

closes: #18154

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-29 18:19:04 +02:00
Hirohito Higashi
e0196f3e27 runtime(doc): Tweak documentation style
closes: #18155

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-29 18:17:40 +02:00
Foxe Chen
4fec4bb7a5 patch 9.1.1710: Compile warnings in clipboard.c
Problem:  Compile warnings in clipboard.c
          (xvim64, after v9.1.1704)
Solution: Remove returns from void functions (Foxe Chen)

fixes: #18145
closes: #18157

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1710
2025-08-29 18:12:15 +02:00
Volodymyr Chernetskyi
d5c89cc6bb patch 9.1.1709: filetype: kyaml files are not recognized
Problem:  filetype: kyaml files are not recognized
Solution: Detect *.kyml files as yaml filetype
          (Volodymyr Chernetskyi)

References:
- https://kubernetes.io/blog/2025/08/27/kubernetes-v1-34-release/#alpha-support-for-kyaml-a-kubernetes-dialect-of-yaml

closes: #18158

Signed-off-by: Volodymyr Chernetskyi <19735328+chernetskyi@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1709
2025-08-29 18:08:52 +02:00
Doug Kearns
7239d95bf2 runtime(vim): Update base syntax, match :defer command argument
closes: #18159

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-29 18:07:11 +02:00
Yegappan Lakshmanan
97ea879b9b patch 9.1.1708: tests: various tests can be improved
Problem:  tests: various tests can be improved
Solution: Use string interpolation to concatenate strings in
          test_winfixbuf, check for specific errors in assert_fails()
          (Yegappan Lakshmanan)

closes: #18151

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1708
2025-08-29 18:04:26 +02:00
Christian Brabandt
a07a2f4c33 runtime(astro): catch json_decode() error when parsing tsconfig.json
(which is jsonc filetype and there can contain comments)

fixes: #18141

Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-29 18:01:08 +02:00
Hirohito Higashi
b27f54965d patch 9.1.1707: diff.pro contains #ifdefs
Problem:  diff.pro contains #ifdefs
Solution: Remove unintentionally added ifdefs
          (Hirohito Higashi)

closes: #18164

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1707
2025-08-29 17:56:20 +02:00
Foxe Chen
2635e83d46 patch 9.1.1706: MS-Windows: Compile error when building with if_ruby
Problem:  MS-Windows: Compile error when building with if_ruby
          (Christian Robinson, after v9.1.1704)
Solution: Do not define gettimeofday() if ruby interface is compiled in
          (Foxe Chen).

fixes: #18143
closes: #18144

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1706
2025-08-27 23:53:41 +02:00
Christian Brabandt
6931730433 README.md: Fix the Warp link
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-27 23:21:31 +02:00
Christian Brabandt
d1cbea0451 README.md: Make the Vim logo visible again.
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-27 22:39:01 +02:00
Christian Brabandt
6fd17cbf02 README.md: Add sponsor banner
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-27 22:28:34 +02:00
Damien Lejay
e7063871e5 patch 9.1.1705: time.h include is available on all platforms
Problem:  time.h include is available on all platforms
Solution: Remove ifdef guards and simply include it in all source files,
          get rid of double include in spellfile.c (Damien Lejay).

closes: #18075

Signed-off-by: Damien Lejay <damien@lejay.be>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1705
2025-08-27 21:31:35 +02:00
Christian Brabandt
b87f133b07 runtime(tutor): Add a section on text objects and special registers to Chapter 2
fixes: #17808
closes: #18105

Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-27 21:28:50 +02:00
Foxe Chen
528196c8a9 patch 9.1.1704: Cannot determine non-X11/Wayland clipmethods
Problem:  Cannot determine non-X11/Wayland clipmethods
Solution: Add the "gui" value to the 'clipmethod' option (Foxe Chen)

related: #18006
closes: #18067

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1704
2025-08-27 21:26:54 +02:00
Foxe Chen
1f51bbc3b9 patch 9.1.1703: Cannot react to terminal OSC responses
Problem:  Cannot react to terminal OSC responses
Solution: Allow TermResponseAll to be triggered by Terminal OSC
          responses (Foxe Chen)

fixes: #14995
closes: #17975

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1703
2025-08-27 21:15:47 +02:00
Christian Brabandt
7f380259cf runtime(vim): update vim syntax generator for patch v9.1.1692
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-27 19:24:49 +02:00
Christian Brabandt
42acf736a3 patch 9.1.1702: tests: test_edit still fails on CI
Problem:  tests: test_edit still fails on CI
          (after v9.1.1701)
Solution: Fix the skip condition

Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1702
2025-08-27 19:07:38 +02:00
Christian Brabandt
6c14c4625b patch 9.1.1701: tests: failure on CI with GUI and ASAN in test_edit.res
Problem:  tests: failure on CI with GUI and ASAN in test_edit.res
          (Hirohito Higashi)
Solution: Disable the test for that specific situation in CI, close
          swapfiles

fixes: #18070

Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1701
2025-08-27 18:38:13 +02:00
Christian Brabandt
bf82e58a70 patch 9.1.1700: Multiline ignorecase specific pattern does not match with 'ignorecase'
Problem:  a pattern that involves a backref on a different line does not
          match when 'ignorecase' is set (QiWei, after v9.1.0645)
Solution: Use MB_STRNICMP when ignorecase is set, fix tests to close
          swapfiles

related: #14756
fixes: #17470
closes: #18104

Signed-off-by: author
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1700
2025-08-27 18:14:27 +02:00
Maxim Kim
cadba05329 patch 9.1.1699: Fuzzy completion disabled for 'findfunc' and customlist
Problem:  Fuzzy completion disabled for 'findfunc' and customlist
Solution: Remove those cases from cmdline_fuzzy_completion_supported()
          because it is supported (Maxim Kim).

fixes: #18117
closes: #18122

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1699
2025-08-27 18:09:14 +02:00
James McCoy
b760062897 runtime(debversions): Move bullseye, focal, and oracular to "unsupported"
These versions have exited their standard support term as of
- bullseye: 2024-08-14
- focal: 2025-05
- oracular: 2025-07-10

closes: #18134

Signed-off-by: James McCoy <jamessan@jamessan.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-27 18:03:04 +02:00
Yegappan Lakshmanan
5e27058fc4 patch 9.1.1698: Some error numbers are not documented
Problem:  Some error numbers are not documented
          (Restorer)
Solution: Document missing error numbers (Yegappan Lakshmanan).

fixes: #18114
closes: #18135

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1698
2025-08-27 18:00:38 +02:00
Maxim Kim
28c88ebeb7 runtime(vimcomplete): Try catch completion of pack_jobs->add({
Fixes the issue, but not the root cause of #18137

related: #18137
closes: #18138

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-27 17:56:41 +02:00
Christian Brabandt
f5670a1596 patch 9.1.1697: tests: no test for aclocal.m4
Problem:  tests: no test for aclocal.m4
          (after v9.1.1693)
Solution: Add a test that aclocal.m4 is detected as config filetype

related: #18065

Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1697
2025-08-27 17:52:56 +02:00
RestorerZ
bc461f952d runtime(indent-tests): Use silent write of resulting files
To avoid littering the terminal output use :silent write.

closes: #18128

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-26 21:54:29 +02:00
RestorerZ
46ff48ba77 translation: Remove outdated rule for nl.po
There exists a real nl.po file, no need to use a dummy po file anymore.

See also the following commits: 84f7235, 8d61617, 02938a9

closes: #18127

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-26 21:49:57 +02:00
Sean Dewar
7d6be2cead patch 9.1.1696: tabnr from getwininfo() for popup windows is always 0
Problem:  getwininfo() has logic for getting the tabnr of a local popup
          window, but due to only breaking from the inner loop, tp is
          eventually set to NULL, so tabnr is always 0.
Solution: Break out of both loops, continue to use 0 for global popup
          windows (Sean Dewar).

closes: #18111

Signed-off-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1696
2025-08-26 21:45:07 +02:00
GalaxySnail
477c893c0a runtime(tutor): remove duplicate tutor1.zh
Commit 8d9d2b222d introduced tutor1.zh
which is a the duplicate of tutor1.zh_tw

related: #18123
closes: #18124

Signed-off-by: GalaxySnail <me@glxys.nl>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-26 21:40:12 +02:00
GalaxySnail
a0eb405761 runtime(tutor): fix language selection for zh
fixes: #18123
related: #18124

Signed-off-by: GalaxySnail <me@glxys.nl>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-26 21:37:38 +02:00
Yegappan Lakshmanan
e810ba5a1f patch 9.1.1695: Need more Vim script specific tests
Problem:  Need more Vim script specific tests
Solution: Add more tests (Yegappan Lakshmanan).

closes: #18118

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1695
2025-08-26 21:32:46 +02:00
Jade Lovelace
3aea867b27 patch 9.1.1694: filetype: Buck eXtension Lang files are not recognized
Problem:  filetype: Buck eXtension Lang files are not recognized
Solution: Detect *.bxl files as bzl filetype.
          (Jade Lovelace)

References:
- https://buck2.build/docs/bxl/

closes: #18130

Signed-off-by: Jade Lovelace <jadel@mercury.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1694
2025-08-26 21:28:02 +02:00
Christian Brabandt
de6e560150 patch 9.1.1693: tests: test_filetype fails in shadow dir
Problem:  tests: test_filetype fails in shadow dir
          (after v9.1.9.1.1687)
Solution: Use a custom test that does not rely on configure.ac
          being existing in the upper directory tree.

Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1693
2025-08-26 21:24:06 +02:00
Damien Lejay
93160530c4 patch 9.1.1692: global_functions are not constant
Problem:  global_functions are not constant
Solution: Place global_functions[] in read-only memory (Damien Lejay).

Mark global_functions[] as `static const`.  The table is never modified
at runtime, so keeping it in writable `.data` has no benefit.

Only a local pointer in func_check_arg_types() needed adjusting to
`const`.  No functional changes.

closes: #18121

Signed-off-by: Damien Lejay <damien@lejay.be>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1692
2025-08-26 21:03:31 +02:00
Damien Lejay
0a9ad34cad patch 9.1.1691: over-allocation in ga_concat_strings()
Problem:  over-allocation in ga_concat_strings()
Solution: Fix ga_concat_strings() and only allocate n-1 separator length
          bytes (Damien Lejay).

ga_concat_strings() was adding the separator length for every item,
including the last one. Only (n - 1) separators are actually used.
This caused harmless but unnecessary overallocation.

closes: #18112

Signed-off-by: Damien Lejay <damien@lejay.be>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1691
2025-08-26 17:55:14 +02:00
ashamedbit
e8948a1f80 patch 9.1.1690: Missing recursion guard in dos/unix_expandpath()
Problem:  Missing recursion guard in dos/unix_expandpath()
Solution: Add guard variables (ashamedbit)

fixes: #18099
closes: #18106

Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: ashamedbit <muralianiruddhan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1690
2025-08-26 17:43:18 +02:00
Shougo Matsushita
540480697d patch 9.1.1689: CmdlineChanged not triggered by <Del>
Problem:  CmdlineChanged not triggered by <Del>
Solution: Use STRCMP() instead of STRNCMP()
          (Shougo Matsushita)

closes: #18101

Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1689
2025-08-26 17:36:49 +02:00
John Marriott
a19b019b87 patch 9.1.1688: potential buffer overrun in bufwrite.c
Problem:  potential buffer overrun in bufwrite.c
Solution: Use a temporary variable (John Marriott)

In my Windows 11 Pro 64-bit build MAXPATHL is 1024 and IOSIZE is 1025.
In my Archlinux Linux 64-bit build MAXPATHL is 4096 and IOSIZE is 1025.

In funuction buf_write():
There is a check (line 713) that makes sure the length of fname is less
than MAXPATHL. There is a call to STRCPY() (line 1208) which copies the
string at fname into IObuff (which has size IOSIZE). For Unix builds
fname is set to sfname which may or may not be shorter. However, if
sfname is NULL sfname is set to fname.

Therefore, in builds where MAXPATHL > IOSIZE (eg in my linux build), it
is theoretically possible for the STRCPY() call to exceed the bounds of
IObuff.

This PR addresses this by copying fname into a local variable that has
the same maximum size as fname.

In addition:
Given that the filename is unconditionally overwritten in the for loop,
only copy the directory portion of fname. Move variable i closer to
where it is used.

closes: #18095

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1688
2025-08-26 17:32:18 +02:00
Damien Lejay
2b55474f0a patch 9.1.1687: filetype: autoconf filetype not always correct
Problem:  filetype: autoconf filetype not always correct
Solution: Detect aclocal.m4 as config filetype, detect configure.ac as
          config filetype, fall back to POSIX m4 (Damien Lejay).

closes: #18065

Signed-off-by: Damien Lejay <damien@lejay.be>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1687
2025-08-26 17:09:47 +02:00
Andis Spriņķis
3571388ded runtime(lf): update syntax to support lf version r37
Adds the lf release 37 specific syntax highlighting changes.

From the PR andis-sprinkis/lf-vim#23 by @CatsDeservePets

closes: #18115

Signed-off-by: Andis Spriņķis <andis@sprinkis.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-26 00:02:01 +02:00
Cthulhux
f32d204e14 patch 9.1.1686: if_ruby: unknown pragma when not using gcc
Problem:  if_ruby: unknown pragma when not using gcc
Solution: only use GCC pragma, when using GCC
          (Cthulhux)

fixes: #18109
closes: #18110

Signed-off-by: Cthulhux <github@tuxproject.de>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1686
2025-08-25 23:45:13 +02:00
Girish Palya
c6a0f42cdb patch 9.1.1685: Missing changes from PR 18068
Problem:  Missing changes from PR 18068
Solution: Include the missing changes
          (Girish Palya)

Co-authored-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1685
2025-08-25 17:33:39 -04:00
LemonBoy
3b3b936125 patch 9.1.1684: min()/max() does not handle float data types
Problem:  min()/max() does not handle float data types
          (ubaldot)
Solution: Extend min() and max() to every comparable type
          (LemonBoy)

Re-use the logic used for plain old comparison operators, this way we
gain support for float values and unify the logic handling the
comparisons.

fixes: #18052
closes: 18055

Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1684
2025-08-24 13:09:04 +02:00
Joakim Nohlgård
b922b30cfe patch 9.1.1683: xxd: Avoid null dereference in autoskip colorless
Problem:  xxd: Avoid null dereference in autoskip colorless
Solution: Verify that colors is not null (Joakim Nohlgård)

Fixes bug introduced in 6897f18ee6
(v9.1.1459) which does a memcpy from NULL when color=never and the
autoskip option is used.

Before:

dd if=/dev/zero bs=100 count=1 status=none | xxd -a -R never
00000000: 0000 0000 0000 0000 0000 0000 0000 0000  ................
Segmentation fault (core dumped)

After:

dd if=/dev/zero bs=100 count=1 status=none | ./xxd/xxd -a -R never
00000000: 0000 0000 0000 0000 0000 0000 0000 0000  ................
*
00000060: 0000 0000                                ....

closes: #18008

Signed-off-by: Joakim Nohlgård <joakim@nohlgard.se>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1683
2025-08-24 12:42:02 +02:00
Jon Parise
99964e2ea7 runtime(python): support 'type's soft keyword form
`type` became a soft keyword in Python 3.12. In that form, it is a
statement that declares a type alias:

    # type_stmt ::= 'type' identifier [type_params] "=" expression
    type Point = tuple[float, float]

To implement support for this, this change does three things:

1. adds a `pythonType` group (linked to `Type`)
2. matches `type` followed by an identifier as `pythonStatement`
3. continues to match `type` in other forms as `pythonBuiltin`

Ref:
- https://docs.python.org/3/reference/lexical_analysis.html#soft-keywords
- https://docs.python.org/3/reference/simple_stmts.html#the-type-statement

closes: #18090

Signed-off-by: Jon Parise <jon@indelible.org>
Signed-off-by: Zvezdan Petkovic <zpetkovic@acm.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-24 12:31:08 +02:00
zeertzjq
46652092a3 patch 9.1.1682: tests: Test_wildtrigger_update_screen() creates unused mapping
Problem:  tests: Test_wildtrigger_update_screen() creates an unused
          mapping (after 9.1.1621).
Solution: Remove the mapping. Also use blank lines more consistently in
          test_cmdline.vim screendump tests (zeertzjq).

closes: #18096

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1682
2025-08-24 12:24:08 +02:00
zeertzjq
e8b99ff6d5 patch 9.1.1681: tests: no test for actually moving cursor with 'acl'
Problem:  tests: no test for actually moving cursor when menu is not
          open with 'autocompletedelay'.
Solution: Use <Up> first in the test. Also remove two unnecessary <Esc>s
          in completion timeout test (zeertzjq).

closes: #18097

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1681
2025-08-24 12:22:10 +02:00