aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorShougo <Shougo.Matsu@gmail.com>2022-06-13 18:40:51 +0900
committerGitHub <noreply@github.com>2022-06-13 02:40:51 -0700
commit663cbe2620278eae658895f82f3eb9bc89310e73 (patch)
tree84708a2e6743eda4c351ffd311885039137b7b79 /src/nvim/testdir
parent2f71d4708e997454a0d05d51122a56146b89af92 (diff)
downloadrneovim-663cbe2620278eae658895f82f3eb9bc89310e73.tar.gz
rneovim-663cbe2620278eae658895f82f3eb9bc89310e73.tar.bz2
rneovim-663cbe2620278eae658895f82f3eb9bc89310e73.zip
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
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_window_cmd.vim10
1 files changed, 8 insertions, 2 deletions
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)