mirror of
https://github.com/neovim/neovim.git
synced 2025-11-28 13:10:44 +00:00
@@ -31,12 +31,6 @@ let &packpath = &rtp
|
|||||||
" Avoid storing shell history.
|
" Avoid storing shell history.
|
||||||
let $HISTFILE = ""
|
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
|
" Use default shell on Windows to avoid segfault, caused by TUI
|
||||||
if has('win32')
|
if has('win32')
|
||||||
let $SHELL = ''
|
let $SHELL = ''
|
||||||
@@ -45,3 +39,15 @@ if has('win32')
|
|||||||
set shellcmdflag=/s/c shellxquote=\" shellredir=>%s\ 2>&1
|
set shellcmdflag=/s/c shellxquote=\" shellredir=>%s\ 2>&1
|
||||||
let &shellpipe = &shellredir
|
let &shellpipe = &shellredir
|
||||||
endif
|
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"))
|
call assert_equal(['{"a"=>"foo", "b"=>123}'], split(l:out, "\n"))
|
||||||
endfunc
|
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()
|
func Test_rubydo()
|
||||||
throw 'skipped: TODO: '
|
throw 'skipped: TODO: '
|
||||||
" Check deleting lines does not trigger ml_get error.
|
" Check deleting lines does not trigger ml_get error.
|
||||||
|
|||||||
Reference in New Issue
Block a user