diff src/testdir/test_termcodes.vim @ 21624:1d75baa22d9a v8.2.1362

patch 8.2.1362: last entry of ":set term=xxx" overwritten by error message Commit: https://github.com/vim/vim/commit/ecd34bf55d72f530859e290ac02ee41f9fb27cce Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 4 20:17:31 2020 +0200 patch 8.2.1362: last entry of ":set term=xxx" overwritten by error message Problem: Last entry of ":set term=xxx" overwritten by error message when 'cmdheight' is two or more. (Tony Mechelynck) Solution: Output extra line breaks.
author Bram Moolenaar <Bram@vim.org>
date Tue, 04 Aug 2020 20:30:03 +0200
parents e00467b9f5de
children ebceee9391cf
line wrap: on
line diff
--- a/src/testdir/test_termcodes.vim
+++ b/src/testdir/test_termcodes.vim
@@ -7,6 +7,7 @@ CheckUnix
 
 source shared.vim
 source mouse.vim
+source view_util.vim
 
 func Test_term_mouse_left_click()
   new
@@ -1893,6 +1894,17 @@ func Test_get_termcode()
   set ttybuiltin
 endfunc
 
+func Test_list_builtin_terminals()
+  let buf = RunVimInTerminal('', #{rows: 14})
+  call term_sendkeys(buf, ":set cmdheight=3\<CR>")
+  call term_wait(buf, 100)
+  call term_sendkeys(buf, ":set term=xxx\<CR>")
+  call term_wait(buf, 100)
+  call assert_match('builtin_dumb', term_getline(buf, 11))
+  call assert_match('Not found in termcap', term_getline(buf, 12))
+  call StopVimInTerminal(buf)
+endfunc
+
 func GetEscCodeCSI27(key, modifier)
   let key = printf("%d", char2nr(a:key))
   let mod = printf("%d", a:modifier)