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.
https://github.com/vim/vim/pull/20044
(2 files)
—
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.![]()