0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

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.
This commit is contained in:
Bram Moolenaar
2018-03-06 14:22:58 +01:00
parent 69f5a3011d
commit df0d24b627
2 changed files with 14 additions and 4 deletions

View File

@@ -157,8 +157,12 @@ endfunc
" Test Virtual replace mode. " Test Virtual replace mode.
func Test_virtual_replace() func Test_virtual_replace()
if exists('&t_kD')
let save_t_kD = &t_kD let save_t_kD = &t_kD
endif
if exists('&t_kb')
let save_t_kb = &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"
@@ -189,8 +193,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
if exists('save_t_kD')
let &t_kD = save_t_kD let &t_kD = save_t_kD
endif
if exists('save_t_kb')
let &t_kb = save_t_kb let &t_kb = save_t_kb
endif
endfunc endfunc
" Test Virtual replace mode. " Test Virtual replace mode.

View File

@@ -766,6 +766,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1579,
/**/ /**/
1578, 1578,
/**/ /**/