Patch 8.0.1579
Problem: Virtual replace test fails in GUI.
Solution: Don't save key options if they were not set.
Files: src/testdir/test_visual.vim
*** ../vim-8.0.1578/src/testdir/test_visual.vim 2018-03-06 13:17:19.793809675
+0100
--- src/testdir/test_visual.vim 2018-03-06 14:18:55.303490584 +0100
***************
*** 157,164 ****
" Test Virtual replace mode.
func Test_virtual_replace()
! 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"
--- 157,168 ----
" Test Virtual replace mode.
func Test_virtual_replace()
! 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"
***************
*** 189,196 ****
\ 'AB IJKLMNO QRst'], getline(12, 13))
enew!
set noai bs&vim
! let &t_kD = save_t_kD
! let &t_kb = save_t_kb
endfunc
" Test Virtual replace mode.
--- 193,204 ----
\ '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.
*** ../vim-8.0.1578/src/version.c 2018-03-06 13:22:42.819870191 +0100
--- src/version.c 2018-03-06 14:21:45.758460430 +0100
***************
*** 768,769 ****
--- 768,771 ----
{ /* Add new patch number below this line */
+ /**/
+ 1579,
/**/
--
"Beware of bugs in the above code; I have only proved
it correct, not tried it." -- Donald Knuth
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.