mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
commit
b9d035a39c
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user