0
0
mirror of https://github.com/vim/vim.git synced 2025-10-17 07:44:28 -04:00
Commit Graph

22227 Commits

Author SHA1 Message Date
Philip H.
ccddb555aa patch 9.1.1729: CI is not run with clang 21
Problem:  CI is not run with clang 21
Solution: Update CI to v21, fix a few warnings that are uncovered when
          using clang 21 (Philip H)

closes: #18142

Signed-off-by: Philip H. <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1729
2025-09-02 20:11:19 +02:00
bennyyip
884290ebf0 patch 9.1.1728: termdebug: cannot evaluate visual selected expression
Problem:  termdebug: cannot evaluate visual selected expression
Solution: Add support for visual mode, mapped to K by default (bennyyip)

closes: #18184

Signed-off-by: bennyyip <yebenmy@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1728
2025-09-02 20:06:20 +02:00
Damien Lejay
1c36a85237 patch 9.1.1727: Nextstep support still included
Problem:  Nextstep support still included
Solution: Deprecate Nextstep code and undef corresponding feature flag

closes: #18131

Signed-off-by: Damien Lejay <damien@lejay.be>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1727
2025-09-02 19:23:54 +02:00
Christian Brabandt
8429a44a9e patch 9.1.1726: Patch v9.1.1725 causes problems
Problem:  Patch v9.1.1725 causes problems
Solution: Revert the patch for now

fixes: #18187

Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1726
2025-09-02 19:13:31 +02:00
Damien Lejay
0ed08788a1 runtime(doc): document use of proto files in develop.txt
closes: #17973

Signed-off-by: Damien Lejay <damien@lejay.be>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-09-01 21:02:19 +02:00
Foxe Chen
f50504a87b patch 9.1.1725: Wayland code can be improved
Problem:  Wayland code can be improved
Solution: Refactor Wayland Clipboard code (Foxe Chen)

This refactor makes the Wayland codebase less convoluted:
- Move clipboard code in wayland.c to clipboard.c
- Use C99 bool type
- Properly poll the Wayland display file descriptor
- Instead of checking if the data source is not NULL in order to
  determine if a selection event comes from us, use a special mime type to
  identify selection events coming from ourselves. The problem with the
  previous approach is that race conditions may occur.
- Put the focus stealing code under a new feature "wayland_focus_steal"
- Use ELAPSED_* macros instead of gettimeofday()
- Pass tests
- Reimplement commented out code
- Update docs
- Make Wayland clipboard behaviour more in line with X11 when connection is lost
- add missing malloc checks and possible memory leaks + refactored some
  tests.

closes: #18139

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1725
2025-09-01 20:52:44 +02:00
Foxe Chen
6a2d0496a1 runtime(doc): add missing da1 value to TermResponseAll doc
closes: #18179

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-09-01 19:49:05 +02:00
mityu
5f5a1c5876 patch 9.1.1724: Compiler warning about ununitialized variable in ex_docmd.
Problem:  Compiler warning about ununitialized variable in ex_docmd.
Solution: Initialize result variable (mityu)

Silence uninitialized variable warning produced by clang 21.1.0

closes: #18182

Signed-off-by: mityu <mityu.mail@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1724
2025-09-01 19:18:46 +02:00
Foxe Chen
710095cab8 patch 9.1.1723: Missing ifdefs
Problem:  Missing ifdefs (after v9.1.1719)
Solution: Add ifdef ELAPSED_FUNC (Foxe Chen).

closes: #18178

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1723
2025-08-31 20:31:44 +02:00
ashamedbit
59d496ab0c patch 9.1.1722: compiler may optimize away clearing of crypt key
Problem:  Compiler may optimize away clearing of crypt key
Solution: Use sodium_memzero() if available, else use memset() using a
          volatile function pointer (ashamedbit).

closes: #18173

Signed-off-by: ashamedbit <muralianiruddhan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1722
2025-08-31 20:05:23 +02:00
Hirohito Higashi
bf91eb7620 patch 9.1.1721: Defining a global gettimeofday() function
Problem:  Defining a global gettimeofday() function causes conflicts if
          gettimeofday() is already defined.
Solution: Revert globalized gettimeofday() function (Hirohito Higashi).

fixes: #18162
fixes: #18161
fixes: #18170
closes: #18173

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1721
2025-08-31 19:43:23 +02:00
Foxe Chen
6278f1a10a patch 9.1.1720: using gettimeofday() for parsing OSC responses
Problem:  Using gettimeofday() for parsing OSC responses
Solution: Use ELAPSED_ macros instead (Foxe Chen).

closes: #18165

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1720
2025-08-31 19:40:24 +02:00
Foxe Chen
2035c74574 patch 9.1.1719: socket server code can be improved
Problem:  socket server code can be improved
Solution: Refactor code, get rid of gettimeofday() and use ELAPSED_
          macros (Foxe Chen)

closes: #18147

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1719
2025-08-31 19:37:40 +02:00
Volodymyr Chernetskyi
6cd6857cbe patch 9.1.1718: filetype: kubectl config file is not recognized
Problem:  filetype: kubectl config file is not recognized
Solution: Detect .kube/kubectl as yaml filetype
          (Volodymyr Chernetskyi).

References:
- https://kubernetes.io/docs/reference/kubectl/kuberc/

closes: #18169

Signed-off-by: Volodymyr Chernetskyi <19735328+chernetskyi@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1718
2025-08-31 19:31:58 +02:00
Volodymyr Chernetskyi
be0589f1d2 patch 9.1.1717: filetype: AWS cli alias file is not recognized
Problem:  filetype: AWS cli alias file is not recognized
Solution: Detect .aws/cli/alias as confini filetype
          (Volodymyr Chernetskyi).

References:
- https://docs.aws.amazon.com/cli/v1/userguide/cli-usage-alias.html

related: #18169

Signed-off-by: Volodymyr Chernetskyi <19735328+chernetskyi@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1717
2025-08-31 19:31:02 +02:00
Aliaksei Budavei
71149dfec5 runtime(java): Dismiss "g:markdown_fenced_languages" for Java buffers
No support is provided or planned for language recognition
in code snippets of documentation comments.  Requesting to
load arbitrary syntax plugins with the aid of the concerned
variable is therefore wasteful in general and erroneous when
paired languages ":syn-include" one another without taking
steps to manage circularity.

related: #17308
related: #17220
closes: #18172

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-31 19:16:14 +02:00
Doug Kearns
6f97624e11 runtime(vim): Update base syntax, fix Vim9 :for loop variable highlighting
Highlight the iteration variable's type in Vim9 :for {var} loops.

Reported by Aliaksei Budavei.

fixes: #17961
closes: #18163

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-08-31 19:13:32 +02:00
glepnir
68f681c6ab patch 9.1.1716: wrong indent in win_line()
Problem:  The code inside an ifdef was indented incorrectly.
Solution: Adjusted the indentation by one level (glepnir).

closes: #18174

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1716
2025-08-31 19:01:39 +02:00
Hirohito Higashi
7292964267 patch 9.1.1715: Some functions need to be re-ordered
Problem:  Some functions need to be re-ordered
Solution: Re-order and move functions around favoring mch_*() functions
          inside os_*.c files, Change scope of dos_expandpath() to
          global instead of static (Hirohito Higashi)

The following fixes and tweaks have been made:

- Moved the definition of mch_expandpath() from filepath.c to os_win32.c
  in MS-Windows builds (essentially, the mch_~() function should be
  defined in os_~.c.)
- In accordance with the above, the scope of dos_expandpath() has been
  changed from static to global.
- Other miscellaneous changes.

closes: #18176

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1715
2025-08-31 18:52:32 +02:00
Girish Palya
2eccb4d0be patch 9.1.1714: completion: wildmode=longest:full selects wrong item
Problem:  completion: wildmode=longest:full selects wrong item
          (zeertzjq)
Solution: Fix issue, refactor ex_getln.c slightly
          (Girish Palya)

fixes: #18102
closes: #18125

Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1714
2025-08-31 18:44:29 +02:00
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