Mercurial > vim
comparison src/testdir/test_terminal.vim @ 18327:0e9d3a77c624 v8.1.2158
patch 8.1.2158: terminal attributes missing in Terminal-normal mode
Commit: https://github.com/vim/vim/commit/17efc7fa05daea1e916a25620c71a5626b7f298d
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Oct 16 18:11:31 2019 +0200
patch 8.1.2158: terminal attributes missing in Terminal-normal mode
Problem: Terminal attributes missing in Terminal-normal mode.
Solution: Use "syntax_attr".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 16 Oct 2019 18:15:04 +0200 |
parents | 2ffe3309958c |
children | 527b7084c556 |
comparison
equal
deleted
inserted
replaced
18326:77cc8e73a3ff | 18327:0e9d3a77c624 |
---|---|
1136 let closedbuf = winbufnr('') | 1136 let closedbuf = winbufnr('') |
1137 quit | 1137 quit |
1138 call assert_fails("call term_dumpload('dumps/Test_popup_command_01.dump', {'bufnr': closedbuf})", 'E475:') | 1138 call assert_fails("call term_dumpload('dumps/Test_popup_command_01.dump', {'bufnr': closedbuf})", 'E475:') |
1139 | 1139 |
1140 quit | 1140 quit |
1141 endfunc | |
1142 | |
1143 func Test_terminal_dumpload_dump() | |
1144 CheckRunVimInTerminal | |
1145 | |
1146 let lines =<< trim END | |
1147 call term_dumpload('dumps/Test_popupwin_22.dump', #{term_rows: 12}) | |
1148 END | |
1149 call writefile(lines, 'XtermDumpload') | |
1150 let buf = RunVimInTerminal('-S XtermDumpload', #{rows: 15}) | |
1151 call VerifyScreenDump(buf, 'Test_terminal_dumpload', {}) | |
1152 | |
1153 call StopVimInTerminal(buf) | |
1154 call delete('XtermDumpload') | |
1141 endfunc | 1155 endfunc |
1142 | 1156 |
1143 func Test_terminal_dumpdiff() | 1157 func Test_terminal_dumpdiff() |
1144 call assert_equal(1, winnr('$')) | 1158 call assert_equal(1, winnr('$')) |
1145 eval 'dumps/Test_popup_command_01.dump'->term_dumpdiff('dumps/Test_popup_command_02.dump') | 1159 eval 'dumps/Test_popup_command_01.dump'->term_dumpdiff('dumps/Test_popup_command_02.dump') |