vim-patch:8.0.1579: virtual replace test fails in GUI

Problem:    Virtual replace test fails in GUI.
Solution:   Don't save key options if they were not set.
df0d24b627
This commit is contained in:
Jan Edmund Lazo 2018-07-14 18:39:29 -04:00
parent 62424fe6ee
commit ce5d755048

View File

@ -129,8 +129,12 @@ endfunc
" Test Virtual replace mode.
func Test_virtual_replace()
throw 'skipped: TODO: '
if exists('&t_kD')
let save_t_kD = &t_kD
endif
if exists('&t_kb')
let save_t_kb = &t_kb
endif
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"
@ -162,8 +166,12 @@ func Test_virtual_replace()
\ 'AB IJKLMNO QRst'], getline(12, 13))
enew!
set noai bs&vim
if exists('save_t_kD')
let &t_kD = save_t_kD
endif
if exists('save_t_kb')
let &t_kb = save_t_kb
endif
endfunc
" Test Virtual replace mode.