mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-09 21:12:31 +08:00
Make every test set filenames and switch directories in the same way, and fix some missing escaping for the rubocop linter
This commit is contained in:
@@ -25,8 +25,11 @@ endfunction
|
||||
" When g:dir is defined, switch back to the directory we saved, and then
|
||||
" delete that variable.
|
||||
"
|
||||
" The filename will be reset to dummy.txt
|
||||
"
|
||||
" This function should be run in a Vader After: block.
|
||||
function! ale#test#RestoreDirectory() abort
|
||||
call ale#test#SetFilename('dummy.txt')
|
||||
silent execute 'cd ' . fnameescape(g:dir)
|
||||
unlet! g:dir
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user