summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-05-21 18:58:26 +0100
committerw0rp <devw0rp@gmail.com>2017-05-21 18:58:26 +0100
commit57ad32f98656eebdc8c903d670c92cf458b31dce (patch)
treecf281d548f0ff358b144d74280fa0722757d79cc /autoload
parentd511b02ebe23de8356233b1eccf36da3795350a7 (diff)
downloadale-57ad32f98656eebdc8c903d670c92cf458b31dce.zip
Fix counting of warnings and style warnings
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/statusline.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/statusline.vim b/autoload/ale/statusline.vim
index 337db22d..bec8a6e4 100644
--- a/autoload/ale/statusline.vim
+++ b/autoload/ale/statusline.vim
@@ -28,9 +28,9 @@ function! ale#statusline#Update(buffer, loclist) abort
for l:entry in a:loclist
if l:entry.type ==# 'W'
if get(l:entry, 'sub_type', '') ==# 'style'
- let l:count.warning += 1
- else
let l:count.style_warning += 1
+ else
+ let l:count.warning += 1
endif
elseif l:entry.type ==# 'I'
let l:count.info += 1