summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Gualandi <hugo_musso_gualandi@hotmail.com>2021-02-06 16:06:01 -0300
committerGitHub <noreply@github.com>2021-02-06 19:06:01 +0000
commit77c034884b49dee0af6bc1024884921079cc9bdb (patch)
tree2dfc4eb77e1c4f68d8d5d58e549b9b8e79b6b6ac
parent8beb67b4d105abae69b6248655c1d2d1ebfb067d (diff)
downloadale-77c034884b49dee0af6bc1024884921079cc9bdb.zip
Bugfix: ParseCFlagsFromMakeOutput was never being called (#3574)
Previously, the make output was never being parsed, even when the `c_parse_makefile` option was set.
-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 946eeca4..14621aa9 100644
--- a/autoload/ale/c.vim
+++ b/autoload/ale/c.vim
@@ -491,7 +491,7 @@ function! ale#c#GetCFlags(buffer, output) abort
endif
endif
- if s:CanParseMakefile(a:buffer) && !empty(a:output) && !empty(l:cflags)
+ if empty(l:cflags) && s:CanParseMakefile(a:buffer) && !empty(a:output)
let l:cflags = ale#c#ParseCFlagsFromMakeOutput(a:buffer, a:output)
endif