Skip to content

Commit

Permalink
Fix horizontal cursor position when moving vertically (#59)
Browse files Browse the repository at this point in the history
Fix #43
  • Loading branch information
KeshiSmith authored and junegunn committed Jul 9, 2019
1 parent 106fb57 commit 26e913a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/limelight.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 26e913a

Please sign in to comment.