vim-patch:8.0.1577: virtual replace test fails on MS-Windows

Problem:    Virtual replace test fails on MS-Windows.
Solution:   Make adding a termcap entry work for a builtin terminal.
            Restore terminal keys in a better way.
e780848150
This commit is contained in:
Jan Edmund Lazo 2018-07-14 18:37:31 -04:00
parent f53c2578e7
commit 62424fe6ee

View File

@ -129,6 +129,8 @@ endfunc
" Test Virtual replace mode.
func Test_virtual_replace()
throw 'skipped: TODO: '
let save_t_kD = &t_kD
let save_t_kb = &t_kb
exe "set t_kD=\<C-V>x7f t_kb=\<C-V>x08"
enew!
exe "normal a\nabcdefghi\njk\tlmn\n opq rst\n\<C-D>uvwxyz"
@ -159,7 +161,9 @@ func Test_virtual_replace()
call assert_equal(['AB......CDEFGHI.Jkl',
\ 'AB IJKLMNO QRst'], getline(12, 13))
enew!
set noai bs&vim t_kD&vim t_kb&vim
set noai bs&vim
let &t_kD = save_t_kD
let &t_kb = save_t_kb
endfunc
" Test Virtual replace mode.