From 663cbe2620278eae658895f82f3eb9bc89310e73 Mon Sep 17 00:00:00 2001 From: Shougo Date: Mon, 13 Jun 2022 18:40:51 +0900 Subject: feat: cmdheight=0 #16251 Fix https://github.com/neovim/neovim/issues/1004 Limitation: All outputs need hit-enter prompt. Related: https://github.com/neovim/neovim/pull/6732 https://github.com/neovim/neovim/pull/4382 --- src/nvim/testdir/test_window_cmd.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/nvim/testdir/test_window_cmd.vim') diff --git a/src/nvim/testdir/test_window_cmd.vim b/src/nvim/testdir/test_window_cmd.vim index 798122dc5d..0fe5fc59eb 100644 --- a/src/nvim/testdir/test_window_cmd.vim +++ b/src/nvim/testdir/test_window_cmd.vim @@ -887,6 +887,7 @@ func Test_floatwin_splitmove() endfunc func Test_window_resize() + throw 'Skipped: Nvim supports cmdheight=0' " Vertical :resize (absolute, relative, min and max size). vsplit vert resize 8 @@ -1028,9 +1029,14 @@ func Test_win_move_statusline() call assert_equal(h0, winheight(0)) call assert_equal(1, &cmdheight) endfor + " Nvim supports cmdheight=0 + set cmdheight=0 call assert_true(win_move_statusline(0, 1)) - call assert_equal(h0, winheight(0)) - call assert_equal(1, &cmdheight) + "call assert_equal(h0, winheight(0)) + "call assert_equal(1, &cmdheight) + call assert_equal(h0 + 1, winheight(0)) + call assert_equal(0, &cmdheight) + set cmdheight& " check win_move_statusline from bottom window on top window ID let id = win_getid(1) for offset in range(5) -- cgit