From a4ed9a1c35f27ae58b61986faa261a1c51876408 Mon Sep 17 00:00:00 2001 From: Alvin Chan Date: Tue, 5 Feb 2019 16:13:58 -0800 Subject: Force Vim to `redraw` after `ale#util#Open` --- autoload/ale/util.vim | 1 + 1 file changed, 1 insertion(+) (limited to 'autoload') diff --git a/autoload/ale/util.vim b/autoload/ale/util.vim index ee9359f8..47e22070 100644 --- a/autoload/ale/util.vim +++ b/autoload/ale/util.vim @@ -111,6 +111,7 @@ function! ale#util#Open(filename, line, column, options) abort endif call cursor(a:line, a:column) + redraw! endfunction let g:ale#util#error_priority = 5 -- cgit v1.2.3 From 7ce481c8f6e58152dfa5934e60a99e56bf785f1d Mon Sep 17 00:00:00 2001 From: Alvin Chan Date: Tue, 5 Feb 2019 16:27:13 -0800 Subject: Center the line within the viewport after a jump --- autoload/ale/util.vim | 1 + 1 file changed, 1 insertion(+) (limited to 'autoload') 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 -- cgit v1.2.3 From 9f63bec12c487652a931cd2a4f9c977b0d657bb7 Mon Sep 17 00:00:00 2001 From: Alvin Chan Date: Tue, 5 Feb 2019 16:31:02 -0800 Subject: Remove the `redraw` since it's implicit with the `zz` --- autoload/ale/util.vim | 1 - 1 file changed, 1 deletion(-) (limited to 'autoload') diff --git a/autoload/ale/util.vim b/autoload/ale/util.vim index a12bcac2..a5fe3d4c 100644 --- a/autoload/ale/util.vim +++ b/autoload/ale/util.vim @@ -111,7 +111,6 @@ function! ale#util#Open(filename, line, column, options) abort endif call cursor(a:line, a:column) - redraw! normal zz endfunction -- cgit v1.2.3 From 70b95f16c36b943ce17802730ce33e2691691f1e Mon Sep 17 00:00:00 2001 From: Alvin Chan Date: Tue, 5 Feb 2019 16:37:26 -0800 Subject: Replace `normal` with `normal!` --- autoload/ale/util.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoload') diff --git a/autoload/ale/util.vim b/autoload/ale/util.vim index a5fe3d4c..1ed6b0d1 100644 --- a/autoload/ale/util.vim +++ b/autoload/ale/util.vim @@ -111,7 +111,7 @@ function! ale#util#Open(filename, line, column, options) abort endif call cursor(a:line, a:column) - normal zz + normal! zz endfunction let g:ale#util#error_priority = 5 -- cgit v1.2.3