]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0892: the max value of 'tabheight' is limited by other tabpages v9.1.0892
authorMilly <milly.ca@gmail.com>
Thu, 28 Nov 2024 17:16:55 +0000 (18:16 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 28 Nov 2024 17:16:55 +0000 (18:16 +0100)
commit2cddf0e85a7f8304476397e1c51dcd0e41835ac3
treebb301b0e2b22ef8b117325f8367065d671fef795
parent511eb84c08ea28a0a1363a4e780ee4311818f459
patch 9.1.0892: the max value of 'tabheight' is limited by other tabpages

Problem:  the max value of 'tabheight' is limited by other tabpages
Solution: Limit the maximum value of 'cmdheight' to the current tabpage only.
          (Milly)

The Help says that cmdheight is local to the tab page, but says nothing
about the maximum value depending on the state of all tab pages. Users
may wonder why they can't increase cmdheight when there are still rows
available on the current tab page. This PR changes the behavior of
cmdheight so that its maximum value depends only on the state of the
current tab page.

Also, since magic numbers were embedded in various places with the
minimum value of cmdheight being 1, we defined a constant to make it
easier to understand.

closes: #16131

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/option.c
src/proto/window.pro
src/term.c
src/testdir/test_options.vim
src/testdir/test_window_cmd.vim
src/version.c
src/vim.h
src/window.c