mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-08 05:24:46 +08:00
c#ParseCFlags: don't index empty list
This commit is contained in:
@@ -55,7 +55,7 @@ function! ale#c#ParseCFlags(path_prefix, cflag_line) abort
|
|||||||
" Check if cflag contained a '-' and should not have been splitted
|
" Check if cflag contained a '-' and should not have been splitted
|
||||||
let l:option_list = split(l:option, '\zs')
|
let l:option_list = split(l:option, '\zs')
|
||||||
|
|
||||||
if l:option_list[-1] isnot# ' '
|
if len(l:option_list) > 0 && l:option_list[-1] isnot# ' '
|
||||||
continue
|
continue
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user