mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
62424fe6ee
commit
ce5d755048
@ -129,8 +129,12 @@ endfunc
|
|||||||
" Test Virtual replace mode.
|
" Test Virtual replace mode.
|
||||||
func Test_virtual_replace()
|
func Test_virtual_replace()
|
||||||
throw 'skipped: TODO: '
|
throw 'skipped: TODO: '
|
||||||
let save_t_kD = &t_kD
|
if exists('&t_kD')
|
||||||
let save_t_kb = &t_kb
|
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"
|
exe "set t_kD=\<C-V>x7f t_kb=\<C-V>x08"
|
||||||
enew!
|
enew!
|
||||||
exe "normal a\nabcdefghi\njk\tlmn\n opq rst\n\<C-D>uvwxyz"
|
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))
|
\ 'AB IJKLMNO QRst'], getline(12, 13))
|
||||||
enew!
|
enew!
|
||||||
set noai bs&vim
|
set noai bs&vim
|
||||||
let &t_kD = save_t_kD
|
if exists('save_t_kD')
|
||||||
let &t_kb = save_t_kb
|
let &t_kD = save_t_kD
|
||||||
|
endif
|
||||||
|
if exists('save_t_kb')
|
||||||
|
let &t_kb = save_t_kb
|
||||||
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" Test Virtual replace mode.
|
" Test Virtual replace mode.
|
||||||
|
Loading…
Reference in New Issue
Block a user