From eae3f70e75b53501edd132a5a59a08d015aaeafa Mon Sep 17 00:00:00 2001 From: paihu Date: Mon, 22 Oct 2018 21:17:57 +0900 Subject: fix CdString for MS Windows --- autoload/ale/path.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'autoload') 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 && ' " 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 && ' -- cgit v1.2.3 From bc3ccd6e042fb623e6a34d5184839aa1f1518f32 Mon Sep 17 00:00:00 2001 From: paihu Date: Mon, 22 Oct 2018 23:42:50 +0900 Subject: fix indent --- autoload/ale/path.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'autoload') diff --git a/autoload/ale/path.vim b/autoload/ale/path.vim index 6d804459..89b119f4 100644 --- a/autoload/ale/path.vim +++ b/autoload/ale/path.vim @@ -65,11 +65,11 @@ endfunction " Output 'cd && ' " This function can be used changing the directory for a linter command. function! ale#path#CdString(directory) abort - if has('win32') - return 'cd /d ' . ale#Escape(a:directory) . ' && ' - else - return 'cd ' . ale#Escape(a:directory) . ' && ' - endif + if has('win32') + return 'cd /d ' . ale#Escape(a:directory) . ' && ' + else + return 'cd ' . ale#Escape(a:directory) . ' && ' + endif endfunction " Output 'cd && ' -- cgit v1.2.3