Close #3325 - Apply new formatting where possible

This commit is contained in:
w0rp
2020-08-28 19:50:36 +01:00
parent 3d5a2690ce
commit 7d4ce4e6aa
30 changed files with 71 additions and 96 deletions

View File

@@ -501,10 +501,10 @@ endfunction
function! ale#c#GetMakeCommand(buffer) abort
if s:CanParseMakefile(a:buffer)
let l:makefile_path = ale#path#FindNearestFile(a:buffer, 'Makefile')
let l:path = ale#path#FindNearestFile(a:buffer, 'Makefile')
if !empty(l:makefile_path)
return 'cd '. fnamemodify(l:makefile_path, ':p:h') . ' && make -n'
if !empty(l:path)
return ale#path#CdString(fnamemodify(l:path, ':h')) . 'make -n'
endif
endif