summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorpaihu <paihu@users.noreply.github.com>2018-10-22 21:17:57 +0900
committerpaihu <paihu@users.noreply.github.com>2018-10-22 21:17:57 +0900
commiteae3f70e75b53501edd132a5a59a08d015aaeafa (patch)
tree16980438d387836f2ba2b4e24a6986124a7662ba /autoload
parentf57ad883f2ddb0613ffeffa4529269a6bcaf913a (diff)
downloadale-eae3f70e75b53501edd132a5a59a08d015aaeafa.zip
fix CdString for MS Windows
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/path.vim6
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> && '