summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvin Chan <aschan@gmail.com>2019-02-05 16:27:13 -0800
committerAlvin Chan <aschan@gmail.com>2019-02-05 16:27:13 -0800
commit7ce481c8f6e58152dfa5934e60a99e56bf785f1d (patch)
treec34a657ff643e15ff4d3328845126679c84d6b4c
parenta4ed9a1c35f27ae58b61986faa261a1c51876408 (diff)
downloadale-7ce481c8f6e58152dfa5934e60a99e56bf785f1d.zip
Center the line within the viewport after a jump
-rw-r--r--autoload/ale/util.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/autoload/ale/util.vim b/autoload/ale/util.vim
index 47e22070..a12bcac2 100644
--- a/autoload/ale/util.vim
+++ b/autoload/ale/util.vim
@@ -112,6 +112,7 @@ function! ale#util#Open(filename, line, column, options) abort
call cursor(a:line, a:column)
redraw!
+ normal zz
endfunction
let g:ale#util#error_priority = 5