diff options
author | w0rp <devw0rp@gmail.com> | 2019-02-10 11:43:48 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-02-10 11:43:48 +0000 |
commit | 7a48750610bbed164750a3f0fbf0fd9e88fa56c5 (patch) | |
tree | f8904b5d9ed2b9b02059cdf267cee46479849c74 /autoload | |
parent | d072d2654c68d1c0bf4a1cb8c15c31e989652669 (diff) | |
download | ale-7a48750610bbed164750a3f0fbf0fd9e88fa56c5.zip |
Complain about binary operators on the ends of lines
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/loclist_jumping.vim | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/autoload/ale/loclist_jumping.vim b/autoload/ale/loclist_jumping.vim index c56f1a7a..6b916227 100644 --- a/autoload/ale/loclist_jumping.vim +++ b/autoload/ale/loclist_jumping.vim @@ -53,9 +53,11 @@ function! ale#loclist_jumping#FindNearest(direction, wrap, ...) abort \ l:search_item \) - if (l:filter is# 'any' || l:filter is# l:item.type) && - \ (l:subtype_filter is# 'any' || - \ l:subtype_filter is# get(l:item, 'sub_type', '')) + if (l:filter is# 'any' || l:filter is# l:item.type) + \&& ( + \ l:subtype_filter is# 'any' + \ || l:subtype_filter is# get(l:item, 'sub_type', '') + \) if a:direction is# 'before' && l:cmp_value < 0 return [l:item.lnum, l:item.col] @@ -71,9 +73,11 @@ function! ale#loclist_jumping#FindNearest(direction, wrap, ...) abort " wrap around the list of warnings/errors if a:wrap for l:item in l:loclist - if (l:filter is# 'any' || l:filter is# l:item.type) && - \ (l:subtype_filter is# 'any' || - \ l:subtype_filter is# get(l:item, 'sub_type', '')) + if (l:filter is# 'any' || l:filter is# l:item.type) + \&& ( + \ l:subtype_filter is# 'any' + \ || l:subtype_filter is# get(l:item, 'sub_type', '') + \) return [l:item.lnum, l:item.col] endif endfor |