1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-23 17:49:57 +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 endfunction
function! zvim#format() abort function! zvim#format() abort
let save_cursor = getcurpos() let save_cursor = getpos('.')
normal! gg=G normal! gg=G
call setpos('.', save_cursor) call setpos('.', save_cursor)
endfunction endfunction