mirror of
https://github.com/vim/vim.git
synced 2026-05-28 00:21:37 +02:00
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:
committed by
Christian Brabandt
parent
10040bc9cd
commit
2ea4a7c3b7
+8
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user