mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-10 05:22:31 +08:00
Fix bug with ALEPrevious for blank lines.
ALEPrevious (as well as ALEPreviousWrap) does not work if there is an error in empty line like 'W391: blank line at end of file' in python.
This commit is contained in:
@@ -32,7 +32,7 @@ function! ale#loclist_jumping#FindNearest(direction, wrap) abort
|
||||
\ {
|
||||
\ 'bufnr': bufnr(''),
|
||||
\ 'lnum': l:item.lnum,
|
||||
\ 'col': min([max([l:item.col, 1]), len(getline(l:item.lnum))]),
|
||||
\ 'col': min([max([l:item.col, 1]), max([len(getline(l:item.lnum)), 1])]),
|
||||
\ },
|
||||
\ l:search_item
|
||||
\)
|
||||
|
||||
Reference in New Issue
Block a user