diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-09-13 12:56:30 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-09-15 12:13:43 +0200 |
commit | 708bd686516b420c2b65f4bc4d2c58fe43fb945e (patch) | |
tree | dceae7b5fc616d7cfec138e5291d664ec7ba451e /src/nvim/window.c | |
parent | bf6de51f55c1b812342c7d4e88c65a7cae7fe97f (diff) | |
download | rneovim-708bd686516b420c2b65f4bc4d2c58fe43fb945e.tar.gz rneovim-708bd686516b420c2b65f4bc4d2c58fe43fb945e.tar.bz2 rneovim-708bd686516b420c2b65f4bc4d2c58fe43fb945e.zip |
feat(ui): use msg_grid based implementation for cmdheight=0
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r-- | src/nvim/window.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index f6301457f3..2ccbdc10ea 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -6193,8 +6193,7 @@ void win_set_inner_size(win_T *wp, bool valid_cursor) // There is no point in adjusting the scroll position when exiting. Some // values might be invalid. - // Skip scroll_to_fraction() when 'cmdheight' was set to one from zero. - if (!exiting && !made_cmdheight_nonzero && valid_cursor) { + if (!exiting && valid_cursor) { scroll_to_fraction(wp, prev_height); } redraw_later(wp, UPD_NOT_VALID); // UPD_SOME_VALID?? |