diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-12-02 10:05:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-02 10:05:49 +0800 |
commit | 6cdcac4492cc33b4360dfbb93fa2b04d9f771494 (patch) | |
tree | 2ff24bcdba06b7da047471d370b9c751731ac6fa /src/nvim/option.c | |
parent | 8de1dc6923396b46c327a31daa8a1562a196a255 (diff) | |
download | rneovim-6cdcac4492cc33b4360dfbb93fa2b04d9f771494.tar.gz rneovim-6cdcac4492cc33b4360dfbb93fa2b04d9f771494.tar.bz2 rneovim-6cdcac4492cc33b4360dfbb93fa2b04d9f771494.zip |
fix(ui): clamp 'cmdheight' for other tabpages on screen resize (#31419)
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 6da9635479..fd0ac375a6 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -1977,8 +1977,8 @@ static const char *did_set_cmdheight(optset_T *args) { OptInt old_value = args->os_oldval.number; - if (p_ch > Rows - min_rows() + 1) { - p_ch = Rows - min_rows() + 1; + if (p_ch > Rows - min_rows(curtab) + 1) { + p_ch = Rows - min_rows(curtab) + 1; } // if p_ch changed value, change the command line height |