]> git.ipfire.org Git - thirdparty/vim.git/log
thirdparty/vim.git
109 min agopatch 9.2.0758: pum: No opacity when background not set for Popup menu group master v9.2.0758
Shad [Tue, 30 Jun 2026 18:56:46 +0000 (18:56 +0000)] 
patch 9.2.0758: pum: No opacity when background not set for Popup menu group

Problem:  pum: When the Pmenu highlight group has no guibg/ctermbg the
          popup menu becomes fully transparent.
Solution: Create an entry if no popup_attr exists (highlight group
          cleared for example), and test if popup_attr exists but
          without guibg/ctermbg attributes to fallback to normal bg
          color. Similar to patch 9.2.0602 for popup window (Shad).

closes: #20638

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Shad <shadow.walker@free.fr>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 hours agopatch 9.2.0757: tests: test_popupwin fails with zsh because of the prompt v9.2.0757
Christian Brabandt [Tue, 30 Jun 2026 18:38:14 +0000 (18:38 +0000)] 
patch 9.2.0757: tests: test_popupwin fails with zsh because of the prompt

Problem:  tests: test_popupwin fails with zsh: it asserts against screen
          cells next to the cursor, which break when zsh draws its own
          prompt.
Solution: Pass an env dict to term_start() clearing $HOME and $PS1
          and assert against term_getline() instead of screenstring().
          While at it fix indentation.

closes: #20664

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 hours agopatch 9.2.0756: Session with multiple tabpages sets 'winminheight' to 0 v9.2.0756
zeertzjq [Tue, 30 Jun 2026 18:34:12 +0000 (18:34 +0000)] 
patch 9.2.0756: Session with multiple tabpages sets 'winminheight' to 0

Problem:  Session with multiple tabpages sets 'winminheight' to 0.
Solution: Only save 'winminheight' and 'winminwidth' once (zeertzjq).

related: #8119
related: neovim/neovim#40493
closes: #20673

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 hours agopatch 9.2.0755: 'autocomplete' behaves inconsistently when recording v9.2.0755
zeertzjq [Tue, 30 Jun 2026 18:27:55 +0000 (18:27 +0000)] 
patch 9.2.0755: 'autocomplete' behaves inconsistently when recording

Problem:  If 'autocompletedelay' is non-zero, 'autocomplete' doesn't
          work when recording a register (after 9.2.0750).
Solution: Still produce K_COMPLETE_DELAY when recording a register, and
          drop it in gotchars_add_byte() instead (zeertzjq).

This patch only changes the behavior when recording a register.
Replaying a register with 'autocomplete' still doesn't fully work
regardless of 'autocompletedelay', as 'autocomplete' isn't triggered
when there is pending input.

closes: #20675

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 hours agopatch 9.2.0754: repeated completion length lookup in search_for_exact_line v9.2.0754
glepnir [Mon, 29 Jun 2026 22:37:25 +0000 (22:37 +0000)] 
patch 9.2.0754: repeated completion length lookup in search_for_exact_line

Problem:  search_for_exact_line() repeatedly calls ins_compl_len() and
          relies on ternary operator precedence.
Solution: Cache the completion length and parenthesize the ternary
          expression.

closes: #20678

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
22 hours agopatch 9.2.0753: GTK GUI deferred redraw skipped on 'lazyredraw' v9.2.0753
Christoffer Aasted [Mon, 29 Jun 2026 22:28:52 +0000 (22:28 +0000)] 
patch 9.2.0753: GTK GUI deferred redraw skipped on 'lazyredraw'

Problem:  GTK GUI deferred redraw skipped on 'lazyredraw'
Solution: Drop the redrawing() condition so a redraw is
          flushed regardless of 'lazyredraw'
          (Christoffer Aasted)

related: #20528
closes:  #20677

Signed-off-by: Christoffer Aasted <dezzadk@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
23 hours agoruntime: add missing fnameescape()/shellescape() in a few runtime files
Yasuhiro Matsumoto [Mon, 29 Jun 2026 21:45:53 +0000 (21:45 +0000)] 
runtime: add missing fnameescape()/shellescape() in a few runtime files

ping @jamessan for the debugchangelog change.

Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
23 hours agopatch 9.2.0752: GTK4: drag-and-drop does not support HTML v9.2.0752
Foxe Chen [Mon, 29 Jun 2026 21:11:23 +0000 (21:11 +0000)] 
patch 9.2.0752: GTK4: drag-and-drop does not support HTML

Problem:  In the GTK4 GUI drag-and-drop does not support HTML.
Solution: Refactor GTK 4 drag-and-drop and clipboard handling.

closes: #20637

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
23 hours agopatch 9.2.0751: GTK3 GUI is slow under Wayland v9.2.0751
Christoffer Aasted [Mon, 29 Jun 2026 21:04:52 +0000 (21:04 +0000)] 
patch 9.2.0751: GTK3 GUI is slow under Wayland

Problem:  GTK3 GUI redraws are slow under Wayland because each draw
          operation queues its own draw area.
Solution: Defer redraws under Wayland: coalesce dirty rectangles and
          flush them once in gui_mch_flush(), route draw calls through a
          queue_draw_area() wrapper (Christoffer Aasted)

closes: #20528

Signed-off-by: Christoffer Aasted <dezzadk@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
23 hours agotranslation(ru): Updated message files
RestorerZ [Mon, 29 Jun 2026 21:00:06 +0000 (21:00 +0000)] 
translation(ru): Updated message files

closes: #20671

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agopatch 9.2.0750: completion: 'autocompletedelay' deferral leaks state v9.2.0750
Hirohito Higashi [Sun, 28 Jun 2026 19:48:02 +0000 (19:48 +0000)] 
patch 9.2.0750: completion: 'autocompletedelay' deferral leaks state

Problem:  After 'autocompletedelay' was made non-blocking, the deferred
          popup can misbehave: a pending autocomplete survives leaving
          Insert mode and then keeps waking the editor in Normal mode,
          the deferral is recorded into registers while recording a
          macro, the popup appears an extra 'updatetime' late when
          'autocompletedelay' is larger and a CursorHoldI autocommand
          exists, CursorHoldI can fire twice without an intervening
          keypress, and an open balloon is dismissed (after v9.2.0739)
Solution: Treat the deferral like CursorHold: only keep it pending in
          Insert mode and not while recording, with pending typeahead,
          or when completion is already active; drop it when Insert mode
          ends; measure the delay from when the user typed so a
          CursorHold in between does not push the popup back; and do not
          let the deferral re-enable CursorHoldI or dismiss the balloon.
          (Hirohito Higashi).

closes: #20669

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agopatch 9.2.0749: 'autocompletedelay' interferes with i_CTRL-K v9.2.0749
zeertzjq [Sun, 28 Jun 2026 19:30:58 +0000 (19:30 +0000)] 
patch 9.2.0749: 'autocompletedelay' interferes with i_CTRL-K

Problem:  'autocompletedelay' interferes with i_CTRL-K (after 9.2.0739).
Solution: Clear the pending autocompltion from the previous key when a
          new key is typed.

closes: #20666

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agopatch 9.2.0748: 'autocompletedelay' interferes with CTRL-G U v9.2.0748
zeertzjq [Sun, 28 Jun 2026 19:27:31 +0000 (19:27 +0000)] 
patch 9.2.0748: 'autocompletedelay' interferes with CTRL-G U

Problem:  'autocompletedelay' interferes with CTRL-G U (after 9.2.0739).
Solution: Restore the flag for CTRL-G U.

related: #8937
related: #20666

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agoruntime(netrw): Use consistent forward slashes
Christian Brabandt [Sun, 28 Jun 2026 19:00:30 +0000 (19:00 +0000)] 
runtime(netrw): Use consistent forward slashes

fixes:  #20636
closes: #20663

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agopatch 9.2.0747: cscope: connection leak when growing the array fails v9.2.0747
Christian Brabandt [Sun, 28 Jun 2026 18:57:22 +0000 (18:57 +0000)] 
patch 9.2.0747: cscope: connection leak when growing the array fails

Problem:  In cs_insert_filelist() a failed vim_realloc() when growing the
          csinfo[] array frees the array and resets csinfo/csinfo_size,
          discarding the still-open existing connections: their fname,
          ppath and flags are leaked and the cscope child processes are
          orphaned, since cs_end()/cs_reset() can no longer reach them.
          (Ao Xijie)
Solution: On realloc() failure keep the original array, which is still
          valid, and only fail to add the new database.

closes: #20662

Supported by AI.

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agopatch 9.2.0746: NULL pointer dereference in gui_photon v9.2.0746
Christian Brabandt [Sun, 28 Jun 2026 18:53:06 +0000 (18:53 +0000)] 
patch 9.2.0746: NULL pointer dereference in gui_photon

Problem:  NULL pointer dereference in gui_photon (Ao Xijie)
Solution: after realloc() validate the buffer is not NULL.

closes: #20661

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agopatch 9.2.0745: Crash with truncated spellfile v9.2.0745
Christian Brabandt [Sun, 28 Jun 2026 18:49:06 +0000 (18:49 +0000)] 
patch 9.2.0745: Crash with truncated spellfile

Problem:  Crash when reading truncated spellfile (MarkLee131)
Solution: Set sl_sofo to TRUE in set_sofo() once sl_sal has been
          converted to the soundfold layout.

Supported by AI.

closes: #20660

Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agopatch 9.2.0744: popup_atcursor() closes immediately on white space v9.2.0744
Yasuhiro Matsumoto [Sun, 28 Jun 2026 18:43:03 +0000 (18:43 +0000)] 
patch 9.2.0744: popup_atcursor() closes immediately on white space

Problem:  popup_atcursor() closes immediately on white space (Mao-Yining)
Solution: Set w_popup_mincol and w_popup_maxcol to the cursor column
          (Yasuhiro Matsumoto)

When the cursor is on white space find_ident_under_cursor() skips forward
to the next word, so the moved range did not cover the cursor column and
popup_check_cursor_pos() closed the popup right away.  Keep the cursor
column in that case.

fixes:  #20652
closes: #20659

Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agoruntime(odin): Update indent script, add indent tests
Maxim Kim [Sun, 28 Jun 2026 17:30:30 +0000 (17:30 +0000)] 
runtime(odin): Update indent script, add indent tests

following odin code is incorrectly indented:

        ...
            fmt.println("Hellope")
        }

        // Fallthrough statement

    // fallthrough can be used to explicitly fall through into the next case block:

closes: 20658

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agoCI: MS-Windows: Run gvim/vim tests in parallel
K.Takata [Sun, 28 Jun 2026 17:28:17 +0000 (17:28 +0000)] 
CI: MS-Windows: Run gvim/vim tests in parallel

https://github.blog/changelog/2026-06-25-actions-steps-can-now-be-run-in-parallel/

closes: #20655

Signed-off-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agopatch 9.2.0743: string macros silently accept a size of the wrong type v9.2.0743
Shane Harper [Sun, 28 Jun 2026 17:24:04 +0000 (17:24 +0000)] 
patch 9.2.0743: string macros silently accept a size of the wrong type

Problem:  Several string and memory wrapper macros cast their size
          argument to size_t although the wrapped function's prototype
          already declares that parameter size_t; such casts silence the
          warning a compiler would otherwise give when a value of the
          wrong type, such as a pointer, is passed as the size.
Solution: Where the wrapped function's prototype already declares the
          parameter size_t, remove the cast so that a size argument of
          the wrong type can be reported at compile time (K.Takata,
          Shane Harper).

From gcc 14 on, -Wint-conversion is an error by default.

With gcc, passing a signed value where size_t is expected triggers
-Wsign-conversion, but the check is off by default and the build already
emits many such warnings.

related: #20642
closes:  #20656

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Shane Harper <shane@shaneharper.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agoruntime(vim): Fix heredoc triggering misidentifcation of Vim9 script
Doug Kearns [Sun, 28 Jun 2026 17:22:16 +0000 (17:22 +0000)] 
runtime(vim): Fix heredoc triggering misidentifcation of Vim9 script

The following let-heredoc can cause legacy scripts to be misidentified
as Vim9 script if it appears early in the file.  Only match :vim9script
at the start of a line where it sensibly belongs.

let x =<< trim LINES
  vim9script
  ...
LINES

fixes:  #20647 (reported by Maxim Kim).
closes: #20654

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agopatch 9.2.0742: filetype: SSH keys and related filetypes not recognized v9.2.0742
Fionn Fitzmaurice [Sun, 28 Jun 2026 17:04:55 +0000 (17:04 +0000)] 
patch 9.2.0742: filetype: SSH keys and related filetypes not recognized

Problem:  filetype: SSH keys and related filetypes not recognized
Solution: Detect sshpublickey, sshknownhosts sshauthorizedkeys and
          sshallowedsigners filetypes, add syntax scripts for those
          filetypes (Fionn Fitzmaurice)

This adds syntax highlighting for SSH public keys, as well as related
filetypes derived from this (SSH authorized keys, SSH known hosts and
SSH allowed signers).

Also add filetype detection based on the path and name.

closes: #20635

Signed-off-by: Fionn Fitzmaurice <git@fionn.computer>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agoruntime(css): add more missing CSS properties
Jay Sitter [Sun, 28 Jun 2026 16:59:26 +0000 (16:59 +0000)] 
runtime(css): add more missing CSS properties

This is defined in the 'CSS Overflow Module Level 3' spec[1] and
supported by recent versions of all browsers reported by MDN[2], see the
MDN page also for the available values.

Link: https://drafts.csswg.org/css-overflow/#scrollbar-gutter-property
Link: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/scrollbar-gutter#browser_compatibility
related: #20639
closes:  #20653

Co-Authored-by: Matthew Hughes <matthewhughes934@gmail.com>
Signed-off-by: Jay Sitter <jay@jaysitter.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agopatch 9.2.0741: complete_check() does not return TRUE for mapped input v9.2.0741
glepnir [Sun, 28 Jun 2026 16:51:26 +0000 (16:51 +0000)] 
patch 9.2.0741: complete_check() does not return TRUE for mapped input

Problem:  Mapped typed keys didn't interrupt completion in
          complete_check() (Yikai Zhao)
Solution: Also interrupt when in_compl_func and not replaying a register.
          (glepnir)

closes: #5547
closes: #20643

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agopatch 9.2.0740: GTK4: scrollbar wrongly displayed v9.2.0740
Foxe Chen [Sun, 28 Jun 2026 16:46:50 +0000 (16:46 +0000)] 
patch 9.2.0740: GTK4: scrollbar wrongly displayed

Problem:  GTK4: scrollbar wrongly displayed
Solution: Calculate scrollbar size in gui_mch_enable_scrollbar for gtk4
          gui (Foxe Chen)

closes: #20628

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agopatch 9.2.0739: completion: 'autocompletedelay' blocks the main loop and drops autoco... v9.2.0739
Hirohito Higashi [Sun, 28 Jun 2026 16:24:13 +0000 (16:24 +0000)] 
patch 9.2.0739: completion: 'autocompletedelay' blocks the main loop and drops autocommands

Problem:  With a non-zero 'autocompletedelay', Insert-mode autocommands
          (TextChangedI, TextChangedP, CursorMovedI) are delayed, and
          while typing faster than the delay they are dropped entirely,
          because the delay blocks the main loop.
Solution: Make 'autocompletedelay' non-blocking: instead of busy-waiting
          before showing the popup menu, defer it with an input-wait
          timeout (K_COMPLETE_DELAY) modeled on CursorHoldI, so typing
          stays responsive and the Insert-mode autocommands fire normally.

The delay timer coexists with 'updatetime': the main loop waits for the
sooner of the two and triggers the event whose deadline was reached, so
'autocompletedelay' no longer shadows CursorHold timing.  Changing the
completion leader, for example with Backspace, updates the visible popup
immediately like a zero delay; only the first popup is deferred.

Update the 'autocompletedelay' screendumps for the non-blocking display.
One test opened the menu with CTRL-N right after the delay expired and
could race with the deferred popup, so it now waits a little longer than
the delay before sending the key.

fixes:  #20591
closes: #20598

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2 days agoruntime: guard recommended style settings consistently
Christian Brabandt [Sun, 28 Jun 2026 16:18:45 +0000 (16:18 +0000)] 
runtime: guard recommended style settings consistently

Normalize the 15 existing guards to the documented two-level form
get(g:, 'X_recommended_style', get(g:, 'filetype_recommended_style', 1)):
fix the two non-standard "!exists() || != 0" guards (python, arduino) and
tolk's wrong fallback variable, and convert the simple one-level guards.

Add the guard to filetype plugins that set stylistic indentation/format
options without one: aap, abap, ada, cabal, cobol, elixir, falcon,
graphql, heex, idris2, mermaid, occam, racket, scala, swift, tera.

Settings that are required rather than stylistic are left untouched, e.g.
make/gomod/scdoc (mandatory tabs), chatito and vroom (indent mandated by
the format), and the textwidth/formatoptions cases in gitcommit/help/
jjdescription.

Supported by AI.

fixes:  #20036
closes: #20650

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 days agopatch 9.2.0738: ml_recover() may write beyond block buffer v9.2.0738
Christian Brabandt [Sat, 27 Jun 2026 08:39:43 +0000 (08:39 +0000)] 
patch 9.2.0738: ml_recover() may write beyond block buffer

Problem:  A crafted swap file can cause an out-of-bounds write during
          recovery when the same block is referenced twice with
          different pe_page_count values (cipher-creator)
Solution: Check hp->bh_page_count against page_count after mf_get() and
          clamp page_count to the actual block size.

closes: #20645

Signed-off-by: Christian Brabandt <cb@256bit.org>
3 days agoCI: Bump actions/checkout in the github-actions group across 1 directory
dependabot[bot] [Sat, 27 Jun 2026 08:38:13 +0000 (08:38 +0000)] 
CI: Bump actions/checkout in the github-actions group across 1 directory

Bumps the github-actions group with 1 update in the / directory: [actions/checkout](https://github.com/actions/checkout).

Updates `actions/checkout` from 6.0.2 to 7.0.0
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6.0.2...v7.0.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

closes: #20646

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 days agopatch 9.2.0737: tests: comment test can be improved v9.2.0737
Maxim Kim [Sat, 27 Jun 2026 08:35:08 +0000 (08:35 +0000)] 
patch 9.2.0737: tests: comment test can be improved

Problem:  tests: comment test can be improved
Solution: Simplify tests (Maxim Kim)

Currently test suite for the comment package uses separate vim in
terminal to do tests, which is inefficient and unnecessary complex.

The reason is the comment.Toggle() uses '<stack>' to get function name
for the opfunc and this fools vim's test runner.

- use lambda func for opfunc inside Toggle()
- simplify tests not to use terminal

closes: #20649

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 days agopatch 9.2.0736: potential command execution in PHP omni-completion v9.2.0736
Hirohito Higashi [Fri, 26 Jun 2026 11:07:01 +0000 (20:07 +0900)] 
patch 9.2.0736: potential command execution in PHP omni-completion

Problem:  With PHP omni-completion, a crafted file can potentially
          execute arbitrary commands when completing a class member.
Solution: Quote the class name before inserting it into the search()
          pattern run via win_execute().

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 days agopatch 9.2.0735: [security]: arbitrary Ex command execution during C omni-completion v9.2.0735
Hirohito Higashi [Fri, 26 Jun 2026 06:41:24 +0000 (15:41 +0900)] 
patch 9.2.0735: [security]: arbitrary Ex command execution during C omni-completion

Problem:  [security]: With C omni-completion, a crafted tags file can execute
          arbitrary Ex commands when completing a struct/union member
          (cipher-creator)
Solution: Escape the type field before inserting it into the :vimgrep
          pattern so it cannot close the pattern and start a new command
          (Hirohito Higashi).

Github Security Advisory:
https://github.com/vim/vim/security/advisories/GHSA-mf92-v4xw-j45x

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>"
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
3 days agoruntime(doc): Tweak documentation style and typo
Hirohito Higashi [Fri, 26 Jun 2026 20:54:47 +0000 (20:54 +0000)] 
runtime(doc): Tweak documentation style and typo

closes: #20644

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 days agopatch 9.2.0734: function pointer passed to STRNCMP() instead of a length v9.2.0734
Shane Harper [Fri, 26 Jun 2026 20:45:25 +0000 (20:45 +0000)] 
patch 9.2.0734: function pointer passed to STRNCMP() instead of a length

Problem:  In the popup 'close' option-value completion check, a function
          pointer (the address of close()) was passed as STRNCMP()'s
          third argument instead of the string length.
Solution: Pass the length (close_len). (Shane Harper)

The user-visible effect was negligible: ":set completepopup=close:o<Tab>"
offered no completions instead of "on" and "off".

closes: #20642

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Shane Harper <shane@shaneharper.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 days agoruntime(cabal): Update compiler, ftplugin, syntax, add indent script
Mateo Gjika [Fri, 26 Jun 2026 20:29:50 +0000 (20:29 +0000)] 
runtime(cabal): Update compiler, ftplugin, syntax, add indent script

closes: #20623

Signed-off-by: Mateo Gjika <104777599+mateoxh@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 days agopatch 9.2.0733: GTK3: GUI slow on X11 since dropping the alpha channel v9.2.0733
Hirohito Higashi [Fri, 26 Jun 2026 20:19:50 +0000 (20:19 +0000)] 
patch 9.2.0733: GTK3: GUI slow on X11 since dropping the alpha channel

Problem:  With the GTK3 GUI, scrolling and moving the window are slow on
          X11 on setups where the accelerated drawing path expects an
          ARGB surface (after v9.2.0646)
Solution: Choose the offscreen surface content per display backend: keep the
          alpha-less surface on Wayland, where it avoids needless alpha
          compositing, and use an ARGB surface on X11 again, which is the
          accelerated path there, restoring the speed (Hirohito Higashi).

fixes:  #20603
closes: #20634

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 days agopatch 9.2.0732: session: terminal restored using absolute columns/rows v9.2.0732
Foxe Chen [Fri, 26 Jun 2026 20:12:56 +0000 (20:12 +0000)] 
patch 9.2.0732: session: terminal restored using absolute columns/rows

Problem:  session: terminal restored using absolute columns/row values
Solution: Implement proportional scaling using the new rows and column
          values (Foxe Chen).

closes: #20627

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 days agopatch 9.2.0731: GTK4 GUI scrollbar size not updated when restoring a session v9.2.0731
Foxe Chen [Fri, 26 Jun 2026 20:09:48 +0000 (20:09 +0000)] 
patch 9.2.0731: GTK4 GUI scrollbar size not updated when restoring a session

Problem:  GTK4 GUI scrollbar size not updated when restoring a session
Solution: In vim_form_move_resize() queue a resize for a hidden widget
          (Foxe Chen).

closes: #20633

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 days agopatch 9.2.0730: GTK4 GUI tabline is not updated v9.2.0730
Foxe Chen [Fri, 26 Jun 2026 20:06:25 +0000 (20:06 +0000)] 
patch 9.2.0730: GTK4 GUI tabline is not updated

Problem:  GTK4 GUI tabline is not updated
Solution: Call gui_mch_update() in gui_mch_show_tabline(), matching the
          GTK3 GUI (Foxe Chen).

related: #20633

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 days agopatch 9.2.0729: % skips parens on continued quoted lines v9.2.0729
Barrett Ruth [Fri, 26 Jun 2026 19:46:11 +0000 (19:46 +0000)] 
patch 9.2.0729: % skips parens on continued quoted lines

Problem:  The "%" command and bracket/text-object motions can skip the
          matching paren or bracket on a line with quotes and a trailing
          backslash.
Solution: Use the quote state at the search start when an odd-quote line
          is continued with a backslash, instead of always treating the
          search as starting in quotes (Barrett Ruth).

closes: #20631

Signed-off-by: Barrett Ruth <br@barrettruth.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 days agoruntime(doc): Add installer updates to version9.txt
K.Takata [Fri, 26 Jun 2026 19:16:25 +0000 (19:16 +0000)] 
runtime(doc): Add installer updates to version9.txt

The NSIS installer has been reworked in https://github.com/vim/vim-win32-installer/pull/457.
Add the updates to version9.txt.

closes: #20630

Signed-off-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
4 days agopatch 9.2.0728: filetype: supertux info pattern is relative to current dir v9.2.0728
zeertzjq [Fri, 26 Jun 2026 19:03:59 +0000 (19:03 +0000)] 
patch 9.2.0728: filetype: supertux info pattern is relative to current dir

Problem:  filetype: supertux info pattern is relative to current
          directory (after 9.2.0716).
Solution: Add `*/` to the start of the pattern (zeertzjq)

closes: #20629

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.2.0727: popup images not rendered correctly when unfocused v9.2.0727
Christoffer Aasted [Wed, 24 Jun 2026 20:44:15 +0000 (20:44 +0000)] 
patch 9.2.0727: popup images not rendered correctly when unfocused

Problem:  popup images not rendered correctly when unfocused
Solution: Avoid refreshing on update_cursor() calls, silence GTK2
          deprecation warnings (Christoffer Aasted)

closes: #20610

Signed-off-by: Christoffer Aasted <dezzadk@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.2.0726: filetype detect missing from completion v9.2.0726
glepnir [Wed, 24 Jun 2026 20:37:21 +0000 (20:37 +0000)] 
patch 9.2.0726: filetype detect missing from completion

Problem:  ":filetype detect" is a valid command but not offered by
          command-line completion.
Solution: Add "detect" to the completion candidates (glepnir)

closes: #20625

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.2.0725: [security]: Stack out-of-bounds write in spell_soundfold_sal() v9.2.0725
Hirohito Higashi [Mon, 22 Jun 2026 04:00:36 +0000 (13:00 +0900)] 
patch 9.2.0725: [security]: Stack out-of-bounds write in spell_soundfold_sal()

Problem:  [security]: A crafted spell file with non-collapsing SAL rules
          can make soundfold() write one byte past the end of the
          MAXWLEN result buffer.  This is the same class of
          out-of-bounds write as GHSA-q8mh-6qm3-25g4 (fixed in 9.2.0698
          for the SOFO branch), found while auditing the surrounding
          code.
Solution: Bound the single-byte SAL result writes and the terminating
          NUL to MAXWLEN - 1, matching the SOFO branch.

The single-byte branch of spell_soundfold_sal() guarded its writes with
"reslen < MAXWLEN", allowing reslen to reach MAXWLEN (254).  The trailing
"res[reslen] = NUL" then wrote at index 254 of the 254-byte stack buffer
res[MAXWLEN], an off-by-one out-of-bounds write.  Input is case-folded to
about 253 characters, so a 253-character argument together with a SAL map
that does not collapse (collapse_result false) reaches the boundary.

Related to previous issue
[GHSA-q8mh-6qm3-25g4](https://github.com/vim/vim/security/advisories/GHSA-q8mh-6qm3-25g4)
(9.2.0698)

Github Security Advisory:
https://github.com/vim/vim/security/advisories/GHSA-m3hf-xcm3-xhm2

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.2.0724: Use-after-free when freeing exit_cb job on exit v9.2.0724
Foxe Chen [Wed, 24 Jun 2026 19:40:51 +0000 (19:40 +0000)] 
patch 9.2.0724: Use-after-free when freeing exit_cb job on exit

Problem:  Use-after-free when freeing exit_cb job on exit
Solution: Return when def_functions has been freed already
          (Foxe Chen)

closes: #20621

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.2.0723: term_start() does not support "noclose" v9.2.0723
Foxe Chen [Wed, 24 Jun 2026 19:35:59 +0000 (19:35 +0000)] 
patch 9.2.0723: term_start() does not support "noclose"

Problem:  term_start() does not support "noclose"
Solution: Add support for "noclose" for the "term_finish" option of
          term_start() (Foxe Chen)

closes: #20620

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.2.0722: GTK4: find/replace dialog can be improved v9.2.0722
Foxe Chen [Wed, 24 Jun 2026 18:57:35 +0000 (18:57 +0000)] 
patch 9.2.0722: GTK4: find/replace dialog can be improved

Problem:  GTK4: find/replace dialog can be improved
Solution: Store the action buttons in the dialog struct, update their
          sensitivity when the search field changes, close the dialog on
          Escape and set the dialog's default widget (Foxe Chen)

closes: #20613

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.2.0721: serverlist() returns strings separated by \n v9.2.0721
Foxe Chen [Wed, 24 Jun 2026 18:40:50 +0000 (18:40 +0000)] 
patch 9.2.0721: serverlist() returns strings separated by \n

Problem:  serverlist() returns strings separated by \n
          (Christian J. Robinson)
Solution: Return a list of server names when given the
          option dict argument (Foxe Chen).

fixes:  #20582
closes: #20601

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.2.0720: GTK4: no support for browsefilter v9.2.0720
Foxe Chen [Wed, 24 Jun 2026 18:29:23 +0000 (18:29 +0000)] 
patch 9.2.0720: GTK4: no support for browsefilter

Problem:  GTK4: no support for browsefilter
Solution: Add browsefilter support (Foxe Chen)

closes: #20612

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.2.0719: GTK4: default menu is lacking v9.2.0719
Foxe Chen [Wed, 24 Jun 2026 18:19:53 +0000 (18:19 +0000)] 
patch 9.2.0719: GTK4: default menu is lacking

Problem:  GTK4: default menu is lacking: accelerator
          text is not shown, mnemonics and 'winaltkeys' do not work
Solution: Replace the GMenuModel-based menus with a custom widget set
          (VimMenuBar, VimMenuBarItem, VimMenu, VimMenuItem) in a new
          gui_gtk4_menu.c, modelled on the GTK3 menu bar: show accelerator
          text, support mnemonics and 'winaltkeys', add keyboard
          navigation, instant tooltips, and the popup and F10 menus, and
          implement the previously stubbed menu functions (Foxe Chen).

closes: #20593

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.2.0718: :syn sync without an argument also lists syntax cluster v9.2.0718
Dmytro Meleshko [Wed, 24 Jun 2026 17:51:22 +0000 (17:51 +0000)] 
patch 9.2.0718: :syn sync without an argument also lists syntax cluster

Problem:  :syn sync without an argument also lists every defined cluster
Solution: Fix control flow in syn_cmd_list() so that only the syncing
          items are printed when this function gets called by :syn sync.
          (dmitmel)

closes: #20614

Signed-off-by: Dmytro Meleshko <dmytro.meleshko@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.2.0717: tests: strange indent in Test_autocmd_dup_arg() v9.2.0717
zeertzjq [Wed, 24 Jun 2026 17:45:48 +0000 (17:45 +0000)] 
patch 9.2.0717: tests: strange indent in Test_autocmd_dup_arg()

Problem:  tests: strange indent in Test_autocmd_dup_arg()
          (after v9.2.0708)
Solution: Indent using the settings in the modeline.

closes: #20619

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.2.0716: filetype: not all supertux files are recognized v9.2.0716
Wu, Zhenyu [Wed, 24 Jun 2026 17:34:25 +0000 (17:34 +0000)] 
patch 9.2.0716: filetype: not all supertux files are recognized

Problem:  filetype: not all supertux files are recognized
Solution: Detect more supertux related files as scheme filetype
          (Wu Zhenyu)

levels:
*.stwm: supertux world map
https://github.com/SuperTux/supertux/wiki/Worldmap-Format
*.stl: supertux level
https://github.com/SuperTux/supertux/wiki/Level-Format
*.stxt: supertux scrolling texts
https://github.com/SuperTux/supertux/wiki/File_formats#scrolling-texts

images:
*.sprite: supertux sprite
https://github.com/SuperTux/supertux/wiki/Sprite
*.strf: supertux tileset
https://github.com/SuperTux/supertux/wiki/Tileset
*.satc: supertux autotiles configuration
*.stcd: supertux converter data

font:
*.stf: supetux font

particles:
*.stcp: supertux custom particle

music:
*.music: supertux music

config:
~/.local/share/supertux2/config: supertux config
https://github.com/SuperTux/supertux/wiki/S-Expression#supertux-config-file
*.stsg: supertux save game

info:
info: https://github.com/SuperTux/supertux/wiki/File_formats#level-subsets

related: #16287
closes:  #20615

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.2.0715: Coverity warns about copy/paste error in hl_blend_attr() v9.2.0715
Christian Brabandt [Wed, 24 Jun 2026 17:30:22 +0000 (17:30 +0000)] 
patch 9.2.0715: Coverity warns about copy/paste error in hl_blend_attr()

Problem:  Coverity warns about copy/paste error in hl_blend_attr()
Solution: Use foreground color instead, regenerate dump

closes: #20624

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.2.0714: Coverity warns for NULL deref v9.2.0714
Christian Brabandt [Wed, 24 Jun 2026 17:29:22 +0000 (17:29 +0000)] 
patch 9.2.0714: Coverity warns for NULL deref

Problem:  Coverity warns for NULL dereference in f_remote_startserver()
Solution: Return early if the server name is null.

related: #20624

Signed-off-by: Christian Brabandt <cb@256bit.org>
6 days agopatch 9.2.0713: completion: ruler not updated correctly when the popup menu is visible v9.2.0713
Hirohito Higashi [Tue, 23 Jun 2026 21:02:46 +0000 (21:02 +0000)] 
patch 9.2.0713: completion: ruler not updated correctly when the popup menu is visible

Problem:  While the insert-mode completion popup menu is visible, the
          ruler - and the ruler shown in a status line when 'laststatus'
          is set - shows the column where the completion started instead
          of the real cursor column. With a status line the ruler can
          also stay at the column from before the completion until the
          next key is pressed.
Solution: Position the popup menu at the completion start column without
          moving the cursor there, so the ruler keeps reflecting the
          real cursor column.  Also mark the status line for redraw
          before the menu is shown, so its ruler is updated for the real
          cursor column while the menu is visible.

closes: #20626

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agopatch 9.2.0712: GTK4: dialogs not handling mnemonics correctly v9.2.0712
Foxe Chen [Tue, 23 Jun 2026 20:32:43 +0000 (20:32 +0000)] 
patch 9.2.0712: GTK4: dialogs not handling mnemonics correctly

Problem:  GTK4: dialogs not handling mnemonics correctly
Solution: Allow using mnemonics without alt key (Foxe Chen).

closes: #20618

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agopatch 9.2.0711: leak in ins_compl_infercase_gettext() in error case v9.2.0711
Christian Brabandt [Tue, 23 Jun 2026 20:16:49 +0000 (20:16 +0000)] 
patch 9.2.0711: leak in ins_compl_infercase_gettext() in error case

Problem:  leak in ins_compl_infercase_gettext() in error case
          (Cheng)
Solution: free wca before returning.

closes: #20607

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agopatch 9.2.0710: GTK4 GUI resize handling can be improved v9.2.0710
Foxe Chen [Tue, 23 Jun 2026 20:03:31 +0000 (20:03 +0000)] 
patch 9.2.0710: GTK4 GUI resize handling can be improved

Problem:  GTK4 GUI resize handling can be improved
Solution: Remove the resize debounce, set the draw area's size request
          in gui_mch_set_text_area_pos() via vim_form_move_resize()
          (Foxe Chen).

reverts: #20327
closes:  #20486

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agopatch 9.2.0709: GTK4: a few minor issues v9.2.0709
Foxe Chen [Tue, 23 Jun 2026 19:51:54 +0000 (19:51 +0000)] 
patch 9.2.0709: GTK4: a few minor issues

Problem:  GTK4: a few minor issues
Solution: Update docs for 'mouseshape' option, remove unnecessary code,
          respect "v" flag in 'guioptions' (Foxe Chen)

closes: #20609

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agopatch 9.2.0708: Leaks in do_autocmd in error case v9.2.0708
Christian Brabandt [Tue, 23 Jun 2026 19:44:48 +0000 (19:44 +0000)] 
patch 9.2.0708: Leaks in do_autocmd in error case

Problem:  Leak in do_autocmd in error case (Cheng)
Solution: goto err_exit in the error case and clean up, make the double
          ++once an actual error

closes: #20606

Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agoruntime(dnsmasq): add new keywords and order existing keywords alphabetically
Pooyan Khanjankhani [Tue, 23 Jun 2026 19:22:53 +0000 (19:22 +0000)] 
runtime(dnsmasq): add new keywords and order existing keywords alphabetically

closes: #20616

Signed-off-by: Pooyan Khanjankhani <pooyankhan@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
7 days agoCI: Restore daily Coverity Scan
Christian Brabandt [Tue, 23 Jun 2026 17:49:27 +0000 (17:49 +0000)] 
CI: Restore daily Coverity Scan

I finally got a note that Coverity is online back again.

This partially reverts commit 0abffbff23adc4ae6e3c78af921a8c9a8cb6670f.
("CI: Remove Cirrus CI and Coverity Scan")

related: #20431

Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agopatch 9.2.0707: completion: popup misplaced when text before it is concealed v9.2.0707
Barrett Ruth [Mon, 22 Jun 2026 20:13:22 +0000 (20:13 +0000)] 
patch 9.2.0707: completion: popup misplaced when text before it is concealed

Problem:  When the cursor line has concealed text before the start of the
          completion, the insert-mode completion popup is drawn at the wrong
          screen column and the cursor no longer lines up with the completed
          text.
Solution: Record the concealed width before the cursor on its screen line in
          a new `win_T` field while `win_line()` draws it, subtract it in
          `pum_display()` to place the menu over the visible text, and redraw
          the cursor line so `win_line()` corrects the cursor too.

closes: #20539

Signed-off-by: Barrett Ruth <br@barrettruth.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agoruntime(doc): document Solaris as supported OS
Christian Brabandt [Mon, 22 Jun 2026 20:05:58 +0000 (20:05 +0000)] 
runtime(doc): document Solaris as supported OS

related: #20567

Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agoruntime(dtrace): handle DTrace probe highlighting before action blocks
Vladimír Marek [Mon, 22 Jun 2026 19:55:32 +0000 (19:55 +0000)] 
runtime(dtrace): handle DTrace probe highlighting before action blocks

Recognize DTrace probe descriptions that are followed immediately by an
action block, such as:

    BEGIN{ trace(1); }
    syscall::open:entry{ trace(1); }

The fourth probe field now consumes the remaining non-whitespace text, and
the lookahead allows zero or more whitespace before the following token.

closes: #20560

Signed-off-by: Vladimír Marek <vlmarek13@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agopatch 9.2.0706: tests: test_terminal3 may fail when $SHELL is zsh v9.2.0706
Christian Brabandt [Mon, 22 Jun 2026 19:45:05 +0000 (19:45 +0000)] 
patch 9.2.0706: tests: test_terminal3 may fail when $SHELL is zsh

Problem:  tests: test_terminal3 may fail when the shell ($SHELL) is zsh
          with a custom prompt, because the prompt wraps the terminal
          line and shifts the expected output.
Solution: Reset $HOME and $PS1 to sane defaults so the shell uses a
          minimal prompt, and adjust the expected window height.

closes: #20599

Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agoruntime(beancount): Add support for non-ASCII account names
依云 [Mon, 22 Jun 2026 19:43:17 +0000 (19:43 +0000)] 
runtime(beancount): Add support for non-ASCII account names

closes: #20597

Signed-off-by: 依云 <lilydjwg@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agopatch 9.2.0705: :delete # silently fails to update "# and clobbers "0 v9.2.0705
Doug Kearns [Mon, 22 Jun 2026 19:36:59 +0000 (19:36 +0000)] 
patch 9.2.0705: :delete # silently fails to update "# and clobbers "0

Problem:  ':delete #' silently fails to update "# and clobbers "0.
Solution: Treat "# like "/, writable only with :let and setreg().

closes: #20592

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agopatch 9.2.0704: GTK4: not handling mouse events v9.2.0704
Foxe Chen [Mon, 22 Jun 2026 19:30:28 +0000 (19:30 +0000)] 
patch 9.2.0704: GTK4: not handling mouse events

Problem:  GTK4: not handling mouse events
Solution: Emit mouse moved events and handle mouse dragging
          (Foxe Chen).

closes: #20545

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agopatch 9.2.0703: session file does not store relative Vim9 autoload imports v9.2.0703
Miguel Barro [Mon, 22 Jun 2026 19:19:24 +0000 (19:19 +0000)] 
patch 9.2.0703: session file does not store relative Vim9 autoload imports

Problem:  mksession misses relative or absolute imports in the session,
          homonymous autoload scripts imported from different scripts
          cause errors (after v9.2.0579).
Solution: Correctly write scripts imported via :import autoload, skip any
          that are no longer readable, and comment out imports whose autoload
          prefix or file name tail would conflict with an earlier one
          (Miguel Barro).

fixes:  #12641
closes: #20564

Signed-off-by: Miguel Barro <miguel.barro@live.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agopatch 9.2.0702: :windo and :tabdo create an extra window with 'winfixbuf' v9.2.0702
ShivaPriyanShanmuga [Mon, 22 Jun 2026 19:07:09 +0000 (19:07 +0000)] 
patch 9.2.0702: :windo and :tabdo create an extra window with 'winfixbuf'

Problem:  With 'winfixbuf' set in the current window, :windo and :tabdo
          create an extra split window, even though they only visit
          existing windows/tabpages and don't change the current
          window's buffer (Collin Kennedy)
Solution: Skip the 'winfixbuf' escape in ex_listdo() for :windo and
          :tabdo (ShivaPriyanShanmuga)

fixes:  #14301
closes: #20600

Signed-off-by: ShivaPriyanShanmuga <pshanmugashiva@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agoruntime(fennel): Update Last Update header
Christian Brabandt [Mon, 22 Jun 2026 19:05:36 +0000 (19:05 +0000)] 
runtime(fennel): Update Last Update header

forgotten from commit 8513982a5ed5a84ba8e4e532505b07b4fa1efbdb

Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agoruntime(fennel): add more ";" comment leaders to 'comments'
yilisharcs [Mon, 22 Jun 2026 18:54:44 +0000 (18:54 +0000)] 
runtime(fennel): add more ";" comment leaders to 'comments'

closes: #20579

Signed-off-by: yilisharcs <yilisharcs@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agopatch 9.2.0701: tests: test_terminal.vim does not wait for job to finish v9.2.0701
Vladimír Marek [Mon, 22 Jun 2026 18:04:06 +0000 (18:04 +0000)] 
patch 9.2.0701: tests: test_terminal.vim does not wait for job to finish

Problem:  tests: Test_terminal_eof_arg() and
          Test_terminal_duplicate_eof_arg() do not wait until the python
          job finishes
Solution: Wait for the job to be dead before checking its exit value
          (Vladimír Marek).

closes: #20571

Signed-off-by: Vladimír Marek <vlmarek13@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
8 days agopatch 9.2.0700: configure: -lrt requirement for timer_create not detected v9.2.0700
Jessica Clarke [Mon, 22 Jun 2026 17:58:04 +0000 (17:58 +0000)] 
patch 9.2.0700: configure: -lrt requirement for timer_create not detected

Problem:  configure does not actually check whether -lrt is needed for
          timer_create(); the test only compiles instead of linking, so
          the requirement is missed when cross-compiling
Solution: Use AC_LINK_IFELSE instead of AC_COMPILE_IFELSE for the
          timer_create checks so the link actually decides whether -lrt
          is required (Jessica Clarke)

AC_COMPILE_IFELSE won't try to link, so if the function exists in the
system headers, we will always detect that -lrt is not needed, as the
code will compile regardless of linker flags. If not cross-compiling,
the following AC_RUN_IFELSE will end up trying to link, so if -lrt is
needed it will fail to link and we will interpret timer_create as not
working, rather than that we just need to link with -lrt. But when we
are cross-compiling we will skip the AC_RUN_IFELSE and assume that it
works, failing to link when we later build if -lrt is in fact needed.

closes: #20605

related: 2cf145b78b88 ("patch 9.1.0837: cross-compiling has some issues")
Signed-off-by: Jessica Clarke <jrtc27@jrtc27.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agonsis: Remove NSIS Installer Code
K.Takata [Sun, 21 Jun 2026 20:33:17 +0000 (20:33 +0000)] 
nsis: Remove NSIS Installer Code

Move the NSIS code to the vim/vim-win32-installer repository.
When we update the NSIS code, we sometimes need to update the
vim/vim-win32-installer scripts also. Managing them in the same repository
should be better for maintenance.

This PR should be merged after https://github.com/vim/vim-win32-installer/pull/457

closes: #20521

Signed-off-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agopatch 9.2.0699: [security]: possible code execution with python complete v9.2.0699
Christian Brabandt [Sun, 21 Jun 2026 19:50:56 +0000 (19:50 +0000)] 
patch 9.2.0699: [security]: possible code execution with python complete

Problem:  [security]: possible code execution with python complete
          (morningbread)
Solution: Use repr() to quote the doc strings correctly

Github Security Advisory:
https://github.com/vim/vim/security/advisories/GHSA-ppj8-wqjf-6fp3

Supported by AI

Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agopatch 9.2.0698: [security]: Out-of-bounds write with soundfold() v9.2.0698
Christian Brabandt [Sun, 21 Jun 2026 19:20:03 +0000 (19:20 +0000)] 
patch 9.2.0698: [security]: Out-of-bounds write with soundfold()

Problem:  [security]: Out-of-bounds write with soundfold()
          (cipher-creator)
Solution: Add an abort condition to the for loop to validate the buffer
          size.

Github Security Advisory:
https://github.com/vim/vim/security/advisories/GHSA-q8mh-6qm3-25g4

Supported by AI

Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agoruntime(xslt,xsd): speed up highlighting by optimizing lookbehinds in patterns
Dmytro Meleshko [Sun, 21 Jun 2026 18:47:22 +0000 (18:47 +0000)] 
runtime(xslt,xsd): speed up highlighting by optimizing lookbehinds in patterns

Move ownership to chrisbra/vim-xml-ftplugin

closes: #20436

Signed-off-by: Dmytro Meleshko <dmytro.meleshko@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agopatch 9.2.0697: possible overflow when parsing CSI keys v9.2.0697
Christian Brabandt [Sun, 21 Jun 2026 18:24:30 +0000 (18:24 +0000)] 
patch 9.2.0697: possible overflow when parsing CSI keys

Problem:  possible overflow when parsing CSI keys (cipher-creator)
Solution: Reject key codes above U+10FFFF and enlarge the key buffer,
          guard the CSI argument accumulator against overflow

closes: #20556

Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agopatch 9.2.0696: GTK4: A few issues with toolbar support v9.2.0696
Foxe Chen [Sun, 21 Jun 2026 18:19:58 +0000 (18:19 +0000)] 
patch 9.2.0696: GTK4: A few issues with toolbar support

Problem:  GTK4: A few issues with toolbar support
Solution: Fix segfault when removing toolbar icon; bring focus to drawarea when button in overflow
          menu is clicked (Foxe Chen)

closes: #20562

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agoAdd README.ja.txt and LICENSE.ja.txt
K.Takata [Sun, 21 Jun 2026 18:04:40 +0000 (18:04 +0000)] 
Add README.ja.txt and LICENSE.ja.txt

Imported from https://github.com/vim-jp/lang-ja/commit/1ddcee4e72ed526196096453c3b33ac633b100d5

closes: #20566

Signed-off-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agopatch 9.2.0695: Solaris: test_delete_temp_dir() fails because of missing flock v9.2.0695
Vladimír Marek [Sun, 21 Jun 2026 17:59:05 +0000 (17:59 +0000)] 
patch 9.2.0695: Solaris: test_delete_temp_dir() fails because of missing flock

Problem:  Solaris: test_delete_temp_dir() fails because of missing flock
Solution: Skip the test (Vladimír Marek)

Test_delete_temp_dir() assumes Vim can detect when its cached private temp
directory has been deleted, which depends on flock/dirfd support.  Solaris
does not provide flock(), so Vim keeps using the cached temp directory path
after the directory has been deleted.  Skip the test there.

closes: #20567

Signed-off-by: Vladimír Marek <vlmarek13@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agopatch 9.2.0694: Solaris: some tests faiures due to Solaris peculiarities v9.2.0694
Vladimír Marek [Sun, 21 Jun 2026 17:54:12 +0000 (17:54 +0000)] 
patch 9.2.0694: Solaris: some tests faiures due to Solaris peculiarities

Problem:  Solaris: some tests faiures due to Solaris peculiarities
Solution: Fix test assumptions (Vladimír Marek)

Several Vim tests assume behavior that is not true for Solaris:

- Test_strptime() expects the artificial POSIX DST rule in TZ to be applied, but
  Solaris strptime() returns the UTC value for that test case.

- Test_gettext() checks ngettext() with a singular-only test catalog entry. GNU
  gettext reuses the singular translation for the Russian plural lookup, but
  Solaris gettext returns an empty string for that malformed catalog entry.

- Test_detect_fifo() reads bash process substitution through /dev/fd, which
  Solaris reports as character special rather than fifo.

- Test_termencoding_euc_jp() writes Xeuc_jp.txt as EUC-JP.  On Solaris, the
  latin1 fallback in 'fileencodings' can still be converted to euc-jp, causing
  Vim to read the file as latin1 instead of as the current euc-jp encoding.
  Read the generated EUC-JP file explicitly as EUC-JP on Solaris.

closes: #20568

Signed-off-by: Vladimír Marek <vlmarek13@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agopatch 9.2.0693: tests: Test_suspend() may fail because of keyprotocol query v9.2.0693
Vladimír Marek [Sun, 21 Jun 2026 17:45:37 +0000 (17:45 +0000)] 
patch 9.2.0693: tests: Test_suspend() may fail because of keyprotocol query

Problem:  tests: Test_suspend() may fail because of keyprotocol query
Solution: Disable keyprotocol and unset t_RK very early so that the
          inner Vim does not query it (Vladimír Marek)

The nested Vim can send a keyprotocol query during startup.  If the terminal
response arrives at the wrong time, the nested Vim may not consume it and the
response can be written to the inner terminal, leaving characters such as 4;2m
after the shell prompt when the test later suspends Vim.

The previous command tried to avoid that with -c 'set keyprotocol=', but -c
commands are applied too late.  Use --cmd 'set t_RK= keyprotocol=' so the
inner Vim disables the query before startup can send it.

closes: #20570

Signed-off-by: Vladimír Marek <vlmarek13@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agopatch 9.2.0692: GTK2: build failure, popup images not drawn correctly v9.2.0692
Christoffer Aasted [Sun, 21 Jun 2026 17:40:30 +0000 (17:40 +0000)] 
patch 9.2.0692: GTK2: build failure, popup images not drawn correctly

Problem:  GTK2: build failure, popup images not drawn correctly
Solution: Add ifdefs for GTK2 support, redraw images on cursor movement
          (Christoffer Aasted)

fixes:  #20504
closes: #20565

Signed-off-by: Christoffer Aasted <dezzadk@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agopatch 9.2.0691: Solaris: Test_terminal_composing_unicode() fails v9.2.0691
Vladimír Marek [Sun, 21 Jun 2026 15:04:10 +0000 (15:04 +0000)] 
patch 9.2.0691: Solaris: Test_terminal_composing_unicode() fails

Problem:  Solaris: Test_terminal_composing_unicode() fails, because
          readline echoes combining UTF-8 input as octal bytes.
Solution: Force C.UTF-8 locale for the terminal test
          (Vladimír Marek).

closes: #20572

Signed-off-by: Vladimír Marek <vlmarek13@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agopatch 9.2.0690: Solaris: swap file names are too long v9.2.0690
Vladimír Marek [Sun, 21 Jun 2026 14:58:30 +0000 (14:58 +0000)] 
patch 9.2.0690: Solaris: swap file names are too long

Problem:  Solaris: dirent.h exposes MAXNAMLEN as 512, but the usable
          file name component limit is 255 (defined in param.h).  Vim
          derives BASENAMELEN for generated swap file names from
          MAXNAMLEN, so it creates overlong components and fails to
          rename the swap file with ENAMETOOLONG (Vladimír Marek).
Solution: Override MAXNAMLEN to the effective Solaris component limit
          of 255 for swap file name generation.

closes: #20573

Signed-off-by: Vladimír Marek <vlmarek13@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agopatch 9.2.0689: the "%" command is slow on a long line with many slashes v9.2.0689
Hirohito Higashi [Sun, 21 Jun 2026 14:53:03 +0000 (14:53 +0000)] 
patch 9.2.0689: the "%" command is slow on a long line with many slashes

Problem:  The "%" command can be very slow on a long line that contains
          many slashes, for example a line of base64 data.
Solution: When looking for a line comment, scan the line only once while
          skipping over strings, instead of rescanning from the start for
          every slash.  Move check_linecomment() to cindent.c so it can
          reuse the file-local skip_string().

related: #20491
fixes:   #20557
closes:  #20575

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agoruntime(cpp): add C++26 lexical constructs to syntax highlighting
Gareth Lloyd [Sun, 21 Jun 2026 14:44:35 +0000 (14:44 +0000)] 
runtime(cpp): add C++26 lexical constructs to syntax highlighting

Add a guarded "C++ 26 extensions" block (cpp_no_cpp26) covering new
lexical surface introduced since C++23:

- [[ ... ]] attributes as a region, so P3394 annotations carrying a
  value expression (eg [[=foo{1}]]) no longer trip cErrInBracket on
  their braces/parens. A \w\@1<! look-behind keeps it from matching a
  subscripted immediately-invoked lambda (arr[[]{...}()]).
- ^^ reflection operator (P2996).
- [: :] splice brackets (P2996).
- contract_assert keyword (P2900).

Add input/cpp_cpp26.cpp exercising these constructs with screendumps,
and update dumps/cpp_noreturn_00.dump for the new [[ ]] attribute
delimiter highlighting.

closes: #20577

Signed-off-by: Gareth Lloyd <gareth@ignition-web.co.uk>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agoCI: Bump msys2/setup-msys2
dependabot[bot] [Sun, 21 Jun 2026 14:41:49 +0000 (14:41 +0000)] 
CI: Bump msys2/setup-msys2

Bumps the github-actions group with 1 update in the / directory: [msys2/setup-msys2](https://github.com/msys2/setup-msys2).

Updates `msys2/setup-msys2` from 2.31.1 to 2.32.0
- [Release notes](https://github.com/msys2/setup-msys2/releases)
- [Changelog](https://github.com/msys2/setup-msys2/blob/main/CHANGELOG.md)
- [Commits](https://github.com/msys2/setup-msys2/compare/v2.31.1...v2.32.0)

---
updated-dependencies:
- dependency-name: msys2/setup-msys2
  dependency-version: 2.32.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

closes: #20578

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agopatch 9.2.0688: Terminal-Normal mode does not show the Visual selection on a colored... v9.2.0688
Hirohito Higashi [Sun, 21 Jun 2026 14:09:31 +0000 (14:09 +0000)] 
patch 9.2.0688: Terminal-Normal mode does not show the Visual selection on a colored empty line

Problem:  In Terminal-Normal mode the Visual selection is not visible on
          the first cell of an empty line that was erased with a
          background color (CSI K after e.g. CSI 100m); a plain empty
          line shows it but a colored one does not.
Solution: Combine the Visual or search highlight onto the first cell on
          top of the explicitly set background color, the same way it
          shows with the default background.

closes: #20580

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agotranslation(ru): fix typo in Russian translation for the new tutor
RestorerZ [Sun, 21 Jun 2026 13:40:59 +0000 (13:40 +0000)] 
translation(ru): fix typo in Russian translation for the new tutor

related: #20450
closes:  #20581

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agopatch 9.2.0687: popup_image_composites_frames() has improper if block scope v9.2.0687
Yee Cheng Chin [Sun, 21 Jun 2026 13:35:06 +0000 (13:35 +0000)] 
patch 9.2.0687: popup_image_composites_frames() has improper if block scope

Problem:  popup_image_composites_frames() has improper if block scope
Solution: Add curly braces to properly scope the if block
          (Yee Cheng Chin).

If the ifdef conditions within the if block evaluates to false, then the
generated code will have the if block apply to the next statement
instead. Use a curly brace to properly scope the if block.

related: #20478
closes:  #20584

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agopatch 9.2.0686: style: strcmp usage is inconsistent v9.2.0686
Doug Kearns [Sun, 21 Jun 2026 13:31:40 +0000 (13:31 +0000)] 
patch 9.2.0686: style: strcmp usage is inconsistent

Problem:  style: strcmp usage is inconsistent.
Solution: Always explicitly test the return value, matching the dominant
          style.

closes: #19101

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agopatch 9.2.0685: clipboard.c does not get the Wayland CFLAGS on GTK2 v9.2.0685
Christoffer Aasted [Sun, 21 Jun 2026 13:13:56 +0000 (13:13 +0000)] 
patch 9.2.0685: clipboard.c does not get the Wayland CFLAGS on GTK2

Problem:  clipboard.c relies on the GTK include flags from
          pkg-config to pull in the Wayland headers.  This is not
          guaranteed: GTK2 does not add them, and Wayland clipboard
          support is independent of the GUI.
Solution: Add $(WAYLAND_CFLAGS) and $(WAYLAND_CPPFLAGS) to the
          clipboard.c compile rule so it always compiles, consistent
          with the other Wayland files (Christoffer Aasted).

closes: #20576

Signed-off-by: Christoffer Aasted <dezzadk@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
9 days agopatch 9.2.0684: :reg # does not display the value of the '#' register v9.2.0684
Doug Kearns [Sun, 21 Jun 2026 13:03:21 +0000 (13:03 +0000)] 
patch 9.2.0684: :reg # does not display the value of the '#' register

Problem:  ':registers #' does not display the value of the '#' register.
Solution: Filter the '#' :registers output on a '#' arg instead of '%'
          (Doug Kearns).

closes: #20589

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>