mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 7.4.1686
Problem: When running tests $HOME/.viminfo is written. (James McCoy) Solution: Add 'nviminfo' to the 'viminfo' option. (closes #722)
This commit is contained in:
@@ -55,6 +55,9 @@ lang mess C
|
||||
" Always use forward slashes.
|
||||
set shellslash
|
||||
|
||||
" Make sure $HOME does not get read or written.
|
||||
let $HOME = '/does/not/exist'
|
||||
|
||||
let s:srcdir = expand('%:p:h:h')
|
||||
|
||||
" Support function: get the alloc ID by name.
|
||||
@@ -141,7 +144,6 @@ for s:test in sort(s:tests)
|
||||
call extend(s:errors, v:errors)
|
||||
let v:errors = []
|
||||
endif
|
||||
|
||||
endfor
|
||||
|
||||
if s:fail == 0
|
||||
|
@@ -53,7 +53,7 @@ func Test_backspace_option()
|
||||
" Cleared when 'compatible' is set
|
||||
set compatible
|
||||
call assert_equal('', &backspace)
|
||||
set nocompatible
|
||||
set nocompatible viminfo+=nviminfo
|
||||
endfunc
|
||||
|
||||
" vim: tabstop=2 shiftwidth=0 expandtab
|
||||
|
@@ -36,7 +36,7 @@ func Test_global_vars()
|
||||
" store a really long list, so line wrapping will occur in viminfo file
|
||||
let test_list = range(1,100)
|
||||
let g:MY_GLOBAL_LIST = test_list
|
||||
set viminfo='100,<50,s10,h,!
|
||||
set viminfo='100,<50,s10,h,!,nviminfo
|
||||
wv! Xviminfo
|
||||
unlet g:MY_GLOBAL_DICT
|
||||
unlet g:MY_GLOBAL_LIST
|
||||
|
@@ -748,6 +748,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1686,
|
||||
/**/
|
||||
1685,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user