Skip to content

Commit

Permalink
ensure errors are echoed if both error and warning on same line
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Rubin committed Feb 7, 2017
1 parent 3f80ab4 commit b0e9207
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions autoload/ale/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,17 @@ function! ale#util#LocItemCompare(left, right) abort
return 1
endif

" put warnings after errors (for the same line) since the text that shows
" when the cursor is moved will show only the first entry

if a:left['type'] < a:right['type']
return -1
endif

if a:left['type'] > a:right['type']
return 1
endif

if a:left['col'] < a:right['col']
return -1
endif
Expand Down

0 comments on commit b0e9207

Please sign in to comment.