patch 9.2.0386: No scroll/scrollbar support in the tabpanel

Problem:  No scroll/scrollbar support in the tabpanel
Solution: Add support for it (Yasuhiro Matsumoto)

closes: #19979

Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Yasuhiro Matsumoto
2026-04-21 20:20:30 +00:00
committed by Christian Brabandt
parent 10040bc9cd
commit 2ea4a7c3b7
10 changed files with 396 additions and 21 deletions
+8 -1
View File
@@ -4946,6 +4946,9 @@ build_stl_str_hl_local(
maxwid = 50;
}
}
// Keep the uncapped value for %N[FuncName] click-region IDs; the 50
// cap below applies only when minwid is used as a padding width.
int raw_minwid = minwid * l;
minwid = (minwid > 50 ? 50 : minwid) * l;
if (*s == '(')
{
@@ -5306,7 +5309,11 @@ build_stl_str_hl_local(
{
stl_items[curitem].stl_type = ClickFunc;
stl_items[curitem].stl_start = p;
stl_items[curitem].stl_minwid = minwid;
// The stl_minwid field is overloaded: it may be the
// "min" part of %<min>.<max> used for padding, or an
// identifier passed to the %N[FuncName] callback. Store
// the uncapped value so IDs above 50 are preserved.
stl_items[curitem].stl_minwid = raw_minwid;
stl_items[curitem].stl_clickfunc =
vim_strnsave(s, rb - s);
s = rb + 1;