Merge pull request #11026 from janlazo/vim-8.1.0220

vim-patch:8.1.0220
This commit is contained in:
Daniel Hahler 2019-09-15 15:55:50 +02:00 committed by GitHub
commit b9d035a39c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 6 deletions

View File

@ -31,12 +31,6 @@ let &packpath = &rtp
" Avoid storing shell history.
let $HISTFILE = ""
" Make sure $HOME does not get read or written.
let $HOME = expand(getcwd() . '/XfakeHOME')
if !isdirectory($HOME)
call mkdir($HOME)
endif
" Use default shell on Windows to avoid segfault, caused by TUI
if has('win32')
let $SHELL = ''
@ -45,3 +39,15 @@ if has('win32')
set shellcmdflag=/s/c shellxquote=\" shellredir=>%s\ 2>&1
let &shellpipe = &shellredir
endif
" Detect user modules for language providers
let $PYTHONUSERBASE = $HOME . '/.local'
if executable('gem')
let $GEM_PATH = system('gem env gempath')
endif
" Make sure $HOME does not get read or written.
let $HOME = expand(getcwd() . '/XfakeHOME')
if !isdirectory($HOME)
call mkdir($HOME)
endif

View File

@ -34,6 +34,14 @@ func Test_ruby_evaluate_dict()
call assert_equal(['{"a"=>"foo", "b"=>123}'], split(l:out, "\n"))
endfunc
func Test_ruby_evaluate_special_var()
let l = [v:true, v:false, v:null]
redir => l:out
ruby d = Vim.evaluate("l"); print d
redir END
call assert_equal(['[true, false, nil]'], split(l:out, "\n"))
endfunc
func Test_rubydo()
throw 'skipped: TODO: '
" Check deleting lines does not trigger ml_get error.