]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0411: tabpanel: no Vim script functions for the tabpanel v9.2.0411
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Tue, 28 Apr 2026 20:25:30 +0000 (20:25 +0000)
committerChristian Brabandt <cb@256bit.org>
Tue, 28 Apr 2026 20:31:34 +0000 (20:31 +0000)
commite7745b7cbf8fa4433083d2565af72e9ffca5026d
tree80d6188b889a6ebad750e1d27bc2446e580d0106
parent6146f3382fcf295bdf7bdfab071e36a6410d14ca
patch 9.2.0411: tabpanel: no Vim script functions for the tabpanel

Problem:  tabpanel: no Vim script functions for the tabpanel
Solution: Add tabpanel_getinfo() and tabpanel_scroll()
          (Yasuhiro Matsumoto).

tabpanel_getinfo() returns a dict describing the tabpanel (align,
columns, scrollbar, offset, total, max_offset).

tabpanel_scroll(n) scrolls the tabpanel by n rows (positive for
down, negative for up). With {absolute: 1} the argument is used as
the new absolute offset instead of a delta. The offset is clamped to
the valid range; returns true when it actually changes.

closes: #20056

Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/builtin.txt
runtime/doc/tags
runtime/doc/usr_41.txt
runtime/doc/version9.txt
runtime/syntax/vim.vim
src/evalfunc.c
src/proto/tabpanel.pro
src/tabpanel.c
src/testdir/test_tabpanel.vim
src/version.c