summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorBen Falconer <ben@falconers.me.uk>2018-06-07 00:04:21 +0100
committerBen Falconer <ben@falconers.me.uk>2018-06-07 00:12:38 +0100
commitd1be72f43890adf78d66c283c51eb3eec626575c (patch)
tree441f50c0fc989e4a2e35be1464b82078308f778c /ale_linters
parent67753de531c77586dd35c6aad093f3a68263601b (diff)
downloadale-d1be72f43890adf78d66c283c51eb3eec626575c.zip
#1635 - Use the project base rather than its parent for cquery
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/cpp/cquery.vim2
1 files changed, 1 insertions, 1 deletions
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