diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-07 19:24:20 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-07 19:24:20 +0000 |
commit | d1f34e64f0e1a9ddaed76623bc40e669f2d09260 (patch) | |
tree | bc1c8e0d3590515a0e627c5c7461324265a7ff80 /src/testdir/test_startup.vim | |
parent | 71f21938bc9f4f6c0e52c178f51cb19be9804690 (diff) |
patch 8.2.4031: crash in xterm with only two linesv8.2.4031
Problem: Crash in xterm with only two lines. (Dominique Pellé)
Solution: Only perform xterm compatibility test if possible. (closes #9488)
Diffstat (limited to 'src/testdir/test_startup.vim')
-rw-r--r-- | src/testdir/test_startup.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim index d67bfb7777..1c1e1c0f3f 100644 --- a/src/testdir/test_startup.vim +++ b/src/testdir/test_startup.vim @@ -821,6 +821,17 @@ func Test_start_with_tabs() call StopVimInTerminal(buf) endfunc +func Test_start_in_minimal_window() + CheckRunVimInTerminal + + let buf = RunVimInTerminal('-c "set nomore"', {'cols': 12, 'rows': 2, 'keep_t_u7': 1}) + call term_sendkeys(buf, "ahello\<Esc>") + call WaitForAssert({-> assert_match('^hello', term_getline(buf, 1))}) + + " clean up + call StopVimInTerminal(buf) +endfunc + func Test_v_argv() " Can't catch the output of gvim. CheckNotGui |