[vim/vim] Do not open a new tab page on double-click in the tabpanel (PR #20044)

2 views
Skip to first unread message

mattn

unread,
Apr 23, 2026, 5:16:27 AM (yesterday) Apr 23
to vim/vim, Subscribed

The tabpanel click handler inherited the tabline behavior of spawning a new, empty tab page on double-click. Unlike the tabline, the tabpanel has no "empty area" — every row maps to some tab — so this fires on decorative content like calendar lines or chart rows and generates stray empty tabs. The behavior is also not documented for the tabpanel (the author confirmed it was an unintentional copy from the tabline path).

Gate the new-tab branch on !tp_label.is_panel so the tabpanel falls through to the regular tab-switch path. The tabline behavior is unchanged. Added a *tabpanel-mouse* note to runtime/doc/tabpage.txt describing the behavior.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20044

Commit Summary

  • d906bb5 Do not open a new tab page on double-click in the tabpanel

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20044@github.com>

Reply all
Reply to author
Forward
0 new messages