diff options
author | w0rp <devw0rp@gmail.com> | 2017-09-12 09:36:16 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-09-12 09:36:16 +0100 |
commit | e2271b769c6fbf8bc09c6ab729175edf8d77c452 (patch) | |
tree | 02950a047bc79782c8c0d517a38c863c8e67a18c /autoload | |
parent | 7f42aedaec4642aa81802a4a03ea1d0a01bb0c4e (diff) | |
download | ale-e2271b769c6fbf8bc09c6ab729175edf8d77c452.zip |
Ban getcwd() from the codebase, as it causes problems
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/test.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/test.vim b/autoload/ale/test.vim index 346786c7..5fe4bed0 100644 --- a/autoload/ale/test.vim +++ b/autoload/ale/test.vim @@ -19,7 +19,7 @@ function! ale#test#SetDirectory(docker_path) abort " Try to switch directory, which will fail when running tests directly, " and not through the Docker image. silent! execute 'cd ' . fnameescape(a:docker_path) - let g:dir = getcwd() + let g:dir = getcwd() " no-custom-checks endfunction " When g:dir is defined, switch back to the directory we saved, and then @@ -43,7 +43,7 @@ function! ale#test#SetFilename(path) abort let l:dir = get(g:, 'dir', '') if empty(l:dir) - let l:dir = getcwd() + let l:dir = getcwd() " no-custom-checks endif let l:full_path = ale#path#IsAbsolute(a:path) |