Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
21623:a9bc567389ff | 21624:1d75baa22d9a |
---|---|
5 CheckNotGui | 5 CheckNotGui |
6 CheckUnix | 6 CheckUnix |
7 | 7 |
8 source shared.vim | 8 source shared.vim |
9 source mouse.vim | 9 source mouse.vim |
10 source view_util.vim | |
10 | 11 |
11 func Test_term_mouse_left_click() | 12 func Test_term_mouse_left_click() |
12 new | 13 new |
13 let save_mouse = &mouse | 14 let save_mouse = &mouse |
14 let save_term = &term | 15 let save_term = &term |
1891 endif | 1892 endif |
1892 | 1893 |
1893 set ttybuiltin | 1894 set ttybuiltin |
1894 endfunc | 1895 endfunc |
1895 | 1896 |
1897 func Test_list_builtin_terminals() | |
1898 let buf = RunVimInTerminal('', #{rows: 14}) | |
1899 call term_sendkeys(buf, ":set cmdheight=3\<CR>") | |
1900 call term_wait(buf, 100) | |
1901 call term_sendkeys(buf, ":set term=xxx\<CR>") | |
1902 call term_wait(buf, 100) | |
1903 call assert_match('builtin_dumb', term_getline(buf, 11)) | |
1904 call assert_match('Not found in termcap', term_getline(buf, 12)) | |
1905 call StopVimInTerminal(buf) | |
1906 endfunc | |
1907 | |
1896 func GetEscCodeCSI27(key, modifier) | 1908 func GetEscCodeCSI27(key, modifier) |
1897 let key = printf("%d", char2nr(a:key)) | 1909 let key = printf("%d", char2nr(a:key)) |
1898 let mod = printf("%d", a:modifier) | 1910 let mod = printf("%d", a:modifier) |
1899 return "\<Esc>[27;" .. mod .. ';' .. key .. '~' | 1911 return "\<Esc>[27;" .. mod .. ';' .. key .. '~' |
1900 endfunc | 1912 endfunc |