Minor cleanup.

This commit is contained in:
LCD 47 2013-05-13 10:59:13 +03:00
parent 4ffa051137
commit cd289e45f0

View File

@ -8,6 +8,7 @@ set cpo&vim
function! s:compareErrorItems(a, b) function! s:compareErrorItems(a, b)
if a:a['bufnr'] != a:b['bufnr'] if a:a['bufnr'] != a:b['bufnr']
" group by files
return a:a['bufnr'] - a:b['bufnr'] return a:a['bufnr'] - a:b['bufnr']
elseif a:a['lnum'] != a:b['lnum'] elseif a:a['lnum'] != a:b['lnum']
return a:a['lnum'] - a:b['lnum'] return a:a['lnum'] - a:b['lnum']
@ -15,7 +16,7 @@ function! s:compareErrorItems(a, b)
" errors take precedence over warnings " errors take precedence over warnings
return a:a['type'] ==? 'e' ? -1 : 1 return a:a['type'] ==? 'e' ? -1 : 1
else else
return a:a['col'] - a:b['col'] return get(a:a, 'col') - get(a:b, 'col')
endif endif
endfunction endfunction