1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 20:00:05 +08:00

Use getpos('.') instead of getcurpos()

close #605
This commit is contained in:
wsdjeg 2017-06-07 21:28:47 +08:00
parent 431b1b85a0
commit 221bfedc79

View File

@ -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