aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorluukvbaal <luukvbaal@gmail.com>2025-01-05 12:09:38 +0100
committerGitHub <noreply@github.com>2025-01-05 19:09:38 +0800
commit54ac406649b9e93d756ea62c1a6a587db462039c (patch)
tree94399fdd02158ed44b7c8f5a25e7d18507a14b3d /src/nvim/option.c
parent5e9040648739252b1b8d38c9b46b111767f34cf2 (diff)
downloadrneovim-54ac406649b9e93d756ea62c1a6a587db462039c.tar.gz
rneovim-54ac406649b9e93d756ea62c1a6a587db462039c.tar.bz2
rneovim-54ac406649b9e93d756ea62c1a6a587db462039c.zip
vim-patch:9.1.0990: Inconsistent behavior when changing cmdheight (#31830)
Problem: Inconsistent behavior when changing cmdheight by resizing the topframe through wincmds and dragging laststatus. Changing cmdheight by resizing the topframe does not trigger OptionSet. Solution: Consolidate logic for changing the cmdheight, set the option value to handle side-effects (Luuk van Baal) https://github.com/vim/vim/commit/e15cbc1af47e9dea90448c714eb4908e5d4302fc vim-patch:9.0.0187: command line height changes when maximizing window height Problem: Command line height changes when maximizing window height. Solution: Do not change the command line height. (closes vim/vim#10885) https://github.com/vim/vim/commit/96bde99bf890acd9952863a02c1d15edca2000e1
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 9d9e70622a..824c9988f4 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -2120,14 +2120,14 @@ static const char *did_set_laststatus(optset_T *args)
// When switching to global statusline, decrease topframe height
// Also clear the cmdline to remove the ruler if there is one
if (value == 3 && old_value != 3) {
- frame_new_height(topframe, topframe->fr_height - STATUS_HEIGHT, false, false);
+ frame_new_height(topframe, topframe->fr_height - STATUS_HEIGHT, false, false, false);
win_comp_pos();
clear_cmdline = true;
}
// When switching from global statusline, increase height of topframe by STATUS_HEIGHT
// in order to to re-add the space that was previously taken by the global statusline
if (old_value == 3 && value != 3) {
- frame_new_height(topframe, topframe->fr_height + STATUS_HEIGHT, false, false);
+ frame_new_height(topframe, topframe->fr_height + STATUS_HEIGHT, false, false, false);
win_comp_pos();
}