From 221bfedc79a5cfb2ef1dfdb973e416d7a1bbab83 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Wed, 7 Jun 2017 21:28:47 +0800 Subject: [PATCH] Use getpos('.') instead of getcurpos() close #605 --- autoload/zvim.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/zvim.vim b/autoload/zvim.vim index 97a1019d9..e5e65866a 100644 --- a/autoload/zvim.vim +++ b/autoload/zvim.vim @@ -32,7 +32,7 @@ function! zvim#enter() abort endfunction function! zvim#format() abort - let save_cursor = getcurpos() + let save_cursor = getpos('.') normal! gg=G call setpos('.', save_cursor) endfunction