diff options
author | paihu <paihu@users.noreply.github.com> | 2018-10-22 21:17:57 +0900 |
---|---|---|
committer | paihu <paihu@users.noreply.github.com> | 2018-10-22 21:17:57 +0900 |
commit | eae3f70e75b53501edd132a5a59a08d015aaeafa (patch) | |
tree | 16980438d387836f2ba2b4e24a6986124a7662ba /autoload | |
parent | f57ad883f2ddb0613ffeffa4529269a6bcaf913a (diff) | |
download | ale-eae3f70e75b53501edd132a5a59a08d015aaeafa.zip |
fix CdString for MS Windows
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/path.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/autoload/ale/path.vim b/autoload/ale/path.vim index 2d8a6ac7..6d804459 100644 --- a/autoload/ale/path.vim +++ b/autoload/ale/path.vim @@ -65,7 +65,11 @@ endfunction " Output 'cd <directory> && ' " This function can be used changing the directory for a linter command. function! ale#path#CdString(directory) abort - return 'cd ' . ale#Escape(a:directory) . ' && ' + if has('win32') + return 'cd /d ' . ale#Escape(a:directory) . ' && ' + else + return 'cd ' . ale#Escape(a:directory) . ' && ' + endif endfunction " Output 'cd <buffer_filename_directory> && ' |