Use setpos() to set cursor position
This commit is contained in:
parent
8f19f49f46
commit
ed55a301e0
@ -353,13 +353,7 @@
|
|||||||
return
|
return
|
||||||
else
|
else
|
||||||
" Jump to coords
|
" Jump to coords
|
||||||
let virtualedit = &virtualedit
|
call setpos('.', [0, coords[0], coords[1]])
|
||||||
setl virtualedit=
|
|
||||||
|
|
||||||
silent execute 'normal! ' . coords[0] . 'gg'
|
|
||||||
silent execute 'normal! "0|"'
|
|
||||||
silent execute 'normal! ' . (coords[1] - 1) . 'l'
|
|
||||||
silent execute 'setl virtualedit=' . virtualedit
|
|
||||||
|
|
||||||
call <SID>Message('Jumping to [' . coords[0] . ', ' . coords[1] . ']')
|
call <SID>Message('Jumping to [' . coords[0] . ', ' . coords[1] . ']')
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user