summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2019-02-08 20:06:12 +0000
committerGitHub <noreply@github.com>2019-02-08 20:06:12 +0000
commit3ba7d0270816c4928952576fe22cb4ecf408eb0b (patch)
treea1841e93e1db8e7e6996c9b868aec0631b04e8a8
parent1fb0de2a8e4ff9846a62ec8c6bcbb8aea8856cc7 (diff)
parent37daedafed010e7e880e88137c98b35ea0d40cd1 (diff)
downloadale-3ba7d0270816c4928952576fe22cb4ecf408eb0b.zip
Merge pull request #2272 from Rahlir/fix-c-compilecommand
Fix error when parsing compile_commands for c languages
-rw-r--r--autoload/ale/c.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/c.vim b/autoload/ale/c.vim
index 031de885..d759b25a 100644
--- a/autoload/ale/c.vim
+++ b/autoload/ale/c.vim
@@ -202,7 +202,7 @@ function! s:GetLookupFromCompileCommandsFile(compile_commands_file) abort
let l:file_lookup[l:basename] = get(l:file_lookup, l:basename, []) + [l:entry]
let l:dirbasename = tolower(fnamemodify(l:entry.directory, ':p:h:t'))
- let l:dir_lookup[l:dirbasename] = get(l:dir_lookup, l:basename, []) + [l:entry]
+ let l:dir_lookup[l:dirbasename] = get(l:dir_lookup, l:dirbasename, []) + [l:entry]
endfor
if !empty(l:file_lookup) && !empty(l:dir_lookup)