diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-02-23 17:47:23 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-02-23 17:47:23 +0100 |
commit | eba13e4ea28f133ff65f6b426428f49a9bd711b0 (patch) | |
tree | 81eb39f4c0abe6ea3e988046fcf56941943c514f /src/testdir/test_terminal.vim | |
parent | bc327ccc3dd408463fc74266f57b879888a13e51 (diff) | |
download | vim-git-eba13e4ea28f133ff65f6b426428f49a9bd711b0.tar.gz |
patch 8.2.2545: errors and crash when terminal window is zero heightv8.2.2545
Problem: Errors and crash when terminal window is zero height. (Leonid V.
Fedorenchik)
Solution: Do not resize when width or height is zero. (closes #7890)
Diffstat (limited to 'src/testdir/test_terminal.vim')
-rw-r--r-- | src/testdir/test_terminal.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim index 90241710e..3def03d7b 100644 --- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -470,6 +470,19 @@ func Test_terminal_size() call delete('Xtext') endfunc +func Test_terminal_zero_height() + split + wincmd j + anoremenu 1.1 WinBar.test : + terminal ++curwin + wincmd k + wincmd _ + redraw + + call term_sendkeys(bufnr(), "exit\r") + bwipe! +endfunc + func Test_terminal_curwin() let cmd = Get_cat_123_cmd() call assert_equal(1, winnr('$')) |