zeertzjq
77545c0f3c
Merge pull request #35962 from zeertzjq/vim-9.1.1797
...
vim-patch:9.1.{1797,1800,1810}
2025-09-30 09:54:02 +08:00
zeertzjq
756e55dc49
vim-patch:9.1.1810: completion: "longest" doesn't work for manual completion with 'ac'
...
Problem: completion: "longest" doesn't work for manual completion when
'autocomplete' is on (after 9.1.1800).
Solution: Only reset compl_get_longest when enabling autocompletion
(zeertzjq).
closes : vim/vim#18430
https://github.com/vim/vim/commit/b3966d6a8e96c9de45a344ec3d42fbb156863835
2025-09-30 09:32:33 +08:00
zeertzjq and Girish Palya
f30a33858f
vim-patch:9.1.1800: completion: strange behaviour with 'ac' completeopt=longest,preinsert
...
Problem: completion: strange behaviour with 'ac'
completeopt=longest,preinsert (zeertzjq)
Solution: Let preinsert take precedence (Girish Palya)
fixes : vim/vim#18410
closes : vim/vim#18428
https://github.com/vim/vim/commit/d35e5e4237ec578962d3d577bc5a4e4f6bf4abb2
Co-authored-by: Girish Palya <girishji@gmail.com >
2025-09-30 09:32:33 +08:00
zeertzjq
e6b2255ac7
vim-patch:4edaf89: runtime(doc): improve preinserted() doc
...
Change the second "if" to "because", otherwise it may be misinterpreted
that preinserted() can return non-zero just because these options are
set.
closes : vim/vim#18409
https://github.com/vim/vim/commit/4edaf8923335504c31810dc4c5213eaba84e7898
2025-09-30 09:32:33 +08:00
zeertzjq and Girish Palya
7b9c063d11
vim-patch:9.1.1797: completion: autocompletion can be improved
...
Problem: completion: autocompletion can be improved
Solution: Add support for "longest" and "preinsert" in 'autocomplete';
add preinserted() (Girish Palya)
* Add support for "longest" in 'completeopt' when 'autocomplete'
is enabled. (Note: the cursor position does not change automatically
when 'autocomplete' is enabled.)
* Add support for "preinsert" when 'autocomplete' is enabled. Ensure
"preinsert" works the same with and without 'autocomplete'
* introduce the preinserted() Vim script function, useful for defining
custom key mappings.
fixes : vim/vim#18314
closes : vim/vim#18387
https://github.com/vim/vim/commit/c05335082adb21d99d96374779856444a3a0688f
Co-authored-by: Girish Palya <girishji@gmail.com >
2025-09-30 09:32:33 +08:00
zeertzjq and Eisuke Kawashima
4896178863
vim-patch:05e44e9: runtime(tex): add amsmath support to tex syntax script ( #35958 )
...
Problem: tex syntax file does not support some of the math equation
environments provided by amsmath.sty, therefore well-formed
snippet is highlighted as "texBadMath"
Solution: add the environments
closes : vim/vim#18433
https://github.com/vim/vim/commit/05e44e978fc7acb5314ce16f5a41d8e75d34bd21
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com >
2025-09-30 08:26:55 +08:00
zeertzjq and Christian Brabandt
af2932e2dc
vim-patch:992e307: runtime(doc): update list of modifiers at :h expand() ( #35957 )
...
fixes : vim/vim#18435
https://github.com/vim/vim/commit/992e30774f5ec81f53d5554c42137d3c85999081
Co-authored-by: Christian Brabandt <cb@256bit.org >
2025-09-30 08:26:40 +08:00
zeertzjq
e7a03dd4e8
Merge pull request #35956 from zeertzjq/vim-9.1.1807
...
vim-patch:9.1.{1807,1808}
2025-09-30 07:10:18 +08:00
zeertzjq
42f1864b62
vim-patch:9.1.1808: Option insecure flags not copied when splitting window
...
Problem: Option insecure flags not copied when splitting window.
Solution: Move window-local insecure flags to winopt_T and copy them
properly (zeertzjq).
closes : vim/vim#18434
https://github.com/vim/vim/commit/b3740f4b00a78701637a49445adeb20b13e6edf6
2025-09-30 06:45:36 +08:00
zeertzjq
ff564237d2
vim-patch:9.1.1807: :set doesn't clear local insecure flag like :setlocal does
...
Problem: :set doesn't clear local insecure flag like :setlocal does.
Solution: Also clear the local insecure flag when using :set (zeertzjq).
This applies to local options like 'wrap', 'foldtext' and 'foldexpr',
whose global flags are actually never used. For global-local options
like 'statusline' the behavior is already correct, so add some tests.
related: vim/vim#18434
https://github.com/vim/vim/commit/fec5586a45dac86f0124f1b6dbd9f61eb418313a
2025-09-30 06:36:50 +08:00
Jan Edmund Lazo and Bram Moolenaar
f2df98e849
vim-patch:8.2.0443: clipboard code is spread out #35949
...
Problem: Clipboard code is spread out.
Solution: Move clipboard code to its own file. (Yegappan Lakshmanan,
closes vim/vim#5827 )
https://github.com/vim/vim/commit/45fffdf10b7cb6e59794e76e9b8a2930fcb4b192
Co-authored-by: Bram Moolenaar <Bram@vim.org >
2025-09-29 07:02:01 -07:00
Maria Solano
9da316fcc4
fix(docs): force blank line after numbered list items #35950
...
Workaround until the vimdoc parser supports numbered list-items:
https://github.com/neovim/tree-sitter-vimdoc/issues/144
2025-09-28 21:01:20 -07:00
2739ab485e
docs: json, tests, lsp #35754
...
Close #35926
Close #35818
Co-authored-by: skewb1k <skewb1kunix@gmail.com >
Co-authored-by: glepnir <glephunter@gmail.com >
2025-09-28 20:57:59 -07:00
zeertzjq
af1b17f17e
Merge pull request #35948 from zeertzjq/vim-72473ce
...
vim-patch: Vim syntax updates
2025-09-29 09:56:26 +08:00
zeertzjq and Doug Kearns
11b6fcdfa6
vim-patch:ae20d73: runtime(vim): Update base syntax, improve line-continuation skip patterns
...
Factor out the common prefix in line-continuation :syn-skip patterns.
closes : vim/vim#18416
https://github.com/vim/vim/commit/ae20d732ae691793297139f688936c602c674999
Co-authored-by: Doug Kearns <dougkearns@gmail.com >
2025-09-29 09:23:42 +08:00
zeertzjq and Doug Kearns
7c9a4a2a71
vim-patch:f4a6acd: runtime(vim): Update base syntax, allow Vim9 :echo tail comments
...
- Match comments after Vim9 :echo and :execute.
- Match comments after Vim9 and legacy :eval.
closes : vim/vim#18420
https://github.com/vim/vim/commit/f4a6acd86edfdaf0f2c1fc4fb0c6533069d0469e
Co-authored-by: Doug Kearns <dougkearns@gmail.com >
2025-09-29 09:19:07 +08:00
zeertzjq and Doug Kearns
2cd899f730
vim-patch:7bb733f: runtime(vim): Update base syntax, match null_tuple literal
...
closes : vim/vim#18404
https://github.com/vim/vim/commit/7bb733f6bf727efe3455c3355a38430ee9cd9cc7
Co-authored-by: Doug Kearns <dougkearns@gmail.com >
2025-09-29 09:17:13 +08:00
zeertzjq and Doug Kearns
e9d8d1b061
vim-patch:57d243e: runtime(vim): Update base syntax, fix indented Vim9 :redir highlighting
...
Include post operator whitespace in the Vim9 variable assignment
lookahead so that "redir =>" doesn't match as an assignment.
fixes : vim/vim#18319
closes : vim/vim#18323
https://github.com/vim/vim/commit/57d243e27da804489e256add0398efb9310a4353
Co-authored-by: Doug Kearns <dougkearns@gmail.com >
2025-09-29 09:16:50 +08:00
zeertzjq and Doug Kearns
6b0365ae2f
vim-patch:6f97624: 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 : vim/vim#17961
closes : vim/vim#18163
https://github.com/vim/vim/commit/6f97624e115eb793e5b486244683ecb86959d859
Co-authored-by: Doug Kearns <dougkearns@gmail.com >
2025-09-29 09:16:17 +08:00
0ebb2ec4e4
vim-patch:4de931d: runtime(vim): Update base syntax, match enum constructor type args
...
closes : vim/vim#17840
https://github.com/vim/vim/commit/4de931daae88784aacd1dc4ecd92ca6fb4a45977
Co-authored-by: Doug Kearns <dougkearns@gmail.com >
Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com >
2025-09-29 09:15:17 +08:00
zeertzjq and Doug Kearns
22f6b9d11f
vim-patch:72473ce: runtime(vim): Update base syntax, match generic functions
...
Match Vim9 generic functions, added in vim/vim#17313 .
closes : vim/vim#17722
https://github.com/vim/vim/commit/72473ce9f8e111072360a7589e2c5bee079305da
Co-authored-by: Doug Kearns <dougkearns@gmail.com >
2025-09-29 09:14:39 +08:00
zeertzjq and Aliaksei Budavei
c07a24e31c
vim-patch:91ac18c: runtime(java): Recognise _module_ import declarations ( #35947 )
...
After two preview proposals (JEPs 476 and 494), _module_
import declarations are now a part of the language (JDK 25).
Reference:
https://openjdk.org/jeps/511
closes : vim/vim#18424
https://github.com/vim/vim/commit/91ac18cb036f87ceff83bf8d05f7c03b50b94633
Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com >
2025-09-29 01:03:42 +00:00
Maria Solano
8a76129d9f
fix(docs): include ? in list items #35945
2025-09-28 17:13:35 -07:00
zeertzjq
0fa0717d4e
vim-patch:9.1.1802: 'nowrap' in a modeline may hide malicious code ( #35946 )
...
Problem: 'nowrap' in a modeline may hide malicious code.
Solution: Forcibly use '>' as 'listchars' "extends" if 'nowrap' was set
from a modeline (zeertzjq).
Manual `:setlocal nowrap` disables this behavior. There is a separate
problem with `:set nowrap` that also applies to some other options.
related: vim/vim#18214
related: vim/vim#18399
closes : vim/vim#18425
https://github.com/vim/vim/commit/9d5208a9313dd8b0d62c97af5485f1715af98a1c
Cherry-pick some test_modeline.vim changes from patches 9.0.{0363,0626}.
2025-09-29 07:48:46 +08:00
glepnir
fcf752476a
fix(cmd): :update writes new file buffers only for real files #35939
...
Problem: :update should write new file buffers, but previous fix
affected special buffer types (acwrite, nofile, etc.).
Solution: Add bt_nofilename() check to only write new files for
buffers representing real filesystem paths.
2025-09-27 20:28:05 -07:00
Maria Solano
03032d1f73
fix(lsp): remove vim.lsp.diagnostic.reset() ( #35938 )
2025-09-27 14:53:00 -07:00
Maria Solano
c5c6ddba91
feat(lsp): document method types ( #35934 )
2025-09-27 14:52:30 -07:00
Maria Solano
5fbc5ab810
fix(lsp): use correct workspace.diagnostics capability key ( #35937 )
2025-09-27 13:40:52 -07:00
Peter Aronoff
6063ecb649
build: remove reference to runtime/indent/Makefile ( #35935 )
...
`runtime/indent/Makefile` was removed in 2d8ed73 , and now `make clean`
and `make distclean` fail since those jobs call `make -C runtime/indent
clean`
Remove call to `make -C runtime/indent clean`
2025-09-28 02:56:23 +08:00
glepnir
69cae6259e
fix(cmd): :update does not write new, unmodified buffer #35929
...
Problem: update command does not write new buffers that have
filenames but no corresponding file on disk, even when using ++p flag.
Solution: allow update to write when buffer has filename but file
doesn't exist.
2025-09-27 10:24:24 -07:00
zeertzjq
2aab242a01
vim-patch:9.1.1798: Wrong display with 'sms' and long wrapped virt text at EOL ( #35930 )
...
Problem: Wrong display with 'smoothscroll' and long wrapped virtual
text at EOL.
Solution: Handle w_skipcol inside long wrapped virtual text at EOL
(zeertzjq).
closes : vim/vim#18408
https://github.com/vim/vim/commit/d9318acc0223bafd3ed5e7f8cdde26328bf200e7
2025-09-27 13:28:40 +00:00
zeertzjq
1e498b8f77
Merge pull request #35911 from e-kwsm/do-not-install-testdir
...
build(vim-patch.sh): ignore runtime/*/testdir/
2025-09-27 20:22:24 +08:00
zeertzjq
916ff94649
build(vim-patch.sh): fix new files matching pattern not removed
2025-09-27 18:55:48 +08:00
Eisuke Kawashima
2d8ed73143
build(vim-patch.sh): ignore runtime/*/testdir/
...
tracked files are removed
2025-09-27 18:55:43 +08:00
skewb1k
e3c36f31e3
fix(highlight): ensure extmark range is within buffer bounds #35928
...
Adds an additional check for the case when end_col = 0, addressing
https://github.com/neovim/neovim/issues/35814#issuecomment-3340709532 .
Validation is now localized to the highlighter without affecting the C API.
2025-09-26 19:32:28 -07:00
zeertzjq
a0c60e819d
Merge pull request #35790 from janlazo/vim-8.1.1989
...
vim-patch:8.1.{2021,2077}
2025-09-26 13:10:24 +08:00
Jan Edmund Lazo and Bram Moolenaar
406f9e3c8c
vim-patch:8.1.2077: the ops.c file is too big
...
Problem: The ops.c file is too big.
Solution: Move code for dealing with registers to a new file. (Yegappan
Lakshmanan, closes vim/vim#4982 )
https://github.com/vim/vim/commit/4aea03eb875613e3eae2125b84f02b7cd898b2f8
Co-authored-by: Bram Moolenaar <Bram@vim.org >
2025-09-26 00:29:40 -04:00
zeertzjq
42aae632be
fix(plines): count 'showbreak' in EOL inline virt_text in line size ( #35921 )
2025-09-26 04:08:38 +00:00
Tomasz N
56709ca168
fix(extui): setup buffers after activating eventignorewin ( #35915 )
...
fix(extui): set options and buffer name after 'eventignorewin'
Problem: Setting up extui buffers emits OptionSet and BufFilePost events.
Solution: Set options and buffer name after 'eventignorewin'.
2025-09-26 01:51:14 +00:00
zeertzjq
a0a86fdc04
test: make preload of functional/testnvim.lua explicit ( #35919 )
...
Before functional/testnvim.lua was moved from functional/testutil.lua in
052498ed42 , it was explicitly preloaded,
but now it is preloaded implicitly via functional/ui/screen.lua.
Also fix warnings about unused variables in other preload.lua files.
2025-09-26 09:05:07 +08:00
zeertzjq and Jon Parise
a9486fe7e1
vim-patch:900c747: runtime(python): fix 'type' syntax highlighting ( #35918 )
...
The previous patterns unintentionally highlighted words like 'typename'.
addresses: https://github.com/vim/vim/pull/18090#issuecomment-3333025523
closes : vim/vim#18394
https://github.com/vim/vim/commit/900c747da393b031f3347428fb640224ac2f5442
Co-authored-by: Jon Parise <jon@indelible.org >
2025-09-26 07:54:19 +08:00
zeertzjq
d9fa495608
vim-patch:9.1.1790: completion: Enter does not insert match with "noinsert" ( #35917 )
...
Problem: completion: Enter does not insert match with "noinsert".
(Sergey Vlasov)
Solution: Check for compl_shown_match instead of compl_selected_item
(zeertzjq).
fixes : vim/vim#18386
related: vim/vim#1653
closes : vim/vim#18395
https://github.com/vim/vim/commit/ef818ae4448726b91c31e24406a554686dea19f5
2025-09-25 23:37:02 +00:00
zeertzjq and Doug Kearns
0646d0ea28
vim-patch:b6f9d38: runtime(doc): Improve documentation of the ..= assignment operator ( #35916 )
...
Explicitly mention the "..=" compound assignment operator everywhere
".=" is documented.
Convert some uses of "." and ".=" in the examples to ".." and "..=",
respectively.
closes : vim/vim#18380
https://github.com/vim/vim/commit/b6f9d38f9607d837b45d905f58dc0199f79414dc
Cherry-pick a change to eval.txt from patch 9.1.1232.
Co-authored-by: Doug Kearns <dougkearns@gmail.com >
2025-09-25 23:31:21 +00:00
zeertzjq
bfa3e111c2
test(unit): disable JIT when using mocks ( #35913 )
...
This fixes the flaky eval/typval_spec.lua tests.
2025-09-26 05:59:05 +08:00
zeertzjq and Devin Weaver
0be3dee44f
vim-patch:4b97fc9: runtime(javascript): Add "using" keyword to JavaScript syntax highlighting ( #35910 )
...
Prior to this change, const and let were keywords for variable
declarations.
This change adds `using` as another keyword for variable declaration.
This JavaScript feature was recently introduced.
Docs:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/using
closes : vim/vim#18381
https://github.com/vim/vim/commit/4b97fc901fd5fc52c2e9ac77c3710976cec5ea9a
Co-authored-by: Devin Weaver <suki@tritarget.org >
2025-09-24 23:28:21 +00:00
zeertzjq
6f45ee22fc
Merge pull request #35909 from zeertzjq/vim-34747a1
...
vim-patch: doc updates
2025-09-25 07:12:32 +08:00
zeertzjq
ca377f3c35
vim-patch:1ae980a: runtime(doc): fix inconsistent indent in cmdline.txt
...
Also fix typo in autoload/netrw.vim.
related: vim/vim#18371
closes : vim/vim#18376
https://github.com/vim/vim/commit/1ae980a9cb8d8cb5e5897f3708ddeb7c8c0555bd
2025-09-25 06:50:44 +08:00
zeertzjq and Konfekt
641cb41832
vim-patch:34747a1: runtime(doc): update live-grep and fuzzy-file-picker examples
...
closes : vim/vim#18371
https://github.com/vim/vim/commit/34747a13e08770ca871e08581551f05153dce9e2
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com >
2025-09-25 06:50:44 +08:00
skewb1k
64966ba52c
fix(highlight): allow ephemeral extmarks past final newline #35888
...
Fixes #35814
Note: this is a temporary workaround; proper concurrency-safe handling
of highlighting should be investigated.
2025-09-24 15:30:54 -07:00
zeertzjq
eb7c12d3e3
test: remove a few more redundant clear() calls ( #35903 )
2025-09-24 14:25:54 +08:00