Fix horizontal cursor position when moving vertically (#59)

Fix #43
This commit is contained in:
郑浩楠
2019-07-09 21:14:30 +08:00
committed by Junegunn Choi
parent 106fb5749d
commit 26e913a2e0

View File

@@ -46,7 +46,7 @@ function! s:getpos()
let bop = get(g:, 'limelight_bop', '^\s*$\n\zs')
let eop = get(g:, 'limelight_eop', '^\s*$')
let span = max([0, get(g:, 'limelight_paragraph_span', 0) - s:empty(getline('.'))])
let pos = getpos('.')
let pos = exists('*getcurpos')? getcurpos() : getpos('.')
for i in range(0, span)
let start = searchpos(bop, i == 0 ? 'cbW' : 'bW')[0]
endfor