vim-patch:7.4.2031 (#5955)

Problem:    The list_lbr_utf8 test fails if ~/.vim/syntax/c.vim sets
            'textwidth' to a non-zero value. (Oyvind A. Holm)
Solution:   Add a setup.vim file that sets 'runtimepath' and $HOME to a safe
            value. (partly by Christian Brabandt, closes vim/vim#912)

89b10421ca
This commit is contained in:
Shougo 2017-01-16 20:50:43 +09:00 committed by Justin M. Keyes
parent 95a4244587
commit fa94c4c2d9
3 changed files with 11 additions and 4 deletions

View File

@ -39,6 +39,9 @@ if &lines < 24 || &columns < 80
cquit
endif
" Common with all tests on all systems.
source setup.vim
" This also enables use of line continuation.
set viminfo+=nviminfo
@ -59,9 +62,6 @@ lang mess C
" Always use forward slashes.
set shellslash
" Make sure $HOME does not get read or written.
let $HOME = '/does/not/exist'
" Align with vim defaults.
set directory^=.
set nohidden

View File

@ -0,0 +1,7 @@
" Common preparations for running tests.
" Make sure 'runtimepath' does not include $HOME.
set rtp=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after
" Make sure $HOME does not get read or written.
let $HOME = '/does/not/exist'

View File

@ -409,7 +409,7 @@ static int included_patches[] = {
// 2034 NA
2033,
// 2032 NA
// 2031,
2031,
// 2030 NA
// 2029,
2028,