From d1be72f43890adf78d66c283c51eb3eec626575c Mon Sep 17 00:00:00 2001 From: Ben Falconer Date: Thu, 7 Jun 2018 00:04:21 +0100 Subject: [PATCH] #1635 - Use the project base rather than its parent for cquery --- ale_linters/cpp/cquery.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ale_linters/cpp/cquery.vim b/ale_linters/cpp/cquery.vim index dbaed520..2fd77d46 100644 --- a/ale_linters/cpp/cquery.vim +++ b/ale_linters/cpp/cquery.vim @@ -7,7 +7,7 @@ call ale#Set('cpp_cquery_cache_directory', expand('~/.cache/cquery')) function! ale_linters#cpp#cquery#GetProjectRoot(buffer) abort let l:project_root = ale#path#FindNearestFile(a:buffer, 'compile_commands.json') - return !empty(l:project_root) ? fnamemodify(l:project_root, ':h:h') : '' + return !empty(l:project_root) ? fnamemodify(l:project_root, ':h') : '' endfunction function! ale_linters#cpp#cquery#GetExecutable(buffer) abort