summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-05-17 22:08:03 +0100
committerw0rp <devw0rp@gmail.com>2019-05-17 22:08:03 +0100
commit652d991077ac3261e51abfa51d979774a555b405 (patch)
tree9999bca754373a43f731df27e4269a3149e12a15 /autoload
parente6745a38118068dbfe8246041de17a5f5c5bf149 (diff)
downloadale-652d991077ac3261e51abfa51d979774a555b405.zip
Fix #1317 - Jump to column 1 for problems at column 0
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/loclist_jumping.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/loclist_jumping.vim b/autoload/ale/loclist_jumping.vim
index 1d3ef7e5..55097d12 100644
--- a/autoload/ale/loclist_jumping.vim
+++ b/autoload/ale/loclist_jumping.vim
@@ -111,7 +111,7 @@ function! ale#loclist_jumping#Jump(direction, ...) abort
if !empty(l:nearest)
normal! m`
- call cursor(l:nearest)
+ call cursor([l:nearest[0], max([l:nearest[1], 1])])
endif
endfunction