junegunn / limelight.vim

:flashlight: All the world's indeed a stage and we are merely players
MIT License
2.36k stars 54 forks source link

Fix the bug #43 #59

Closed KeshiSmith closed 5 years ago

KeshiSmith commented 5 years ago

The commit is for fixing the bug #43 "cursor does not maintain horizontal position when moving. I use the function getcurpos instead of getpos.

getpos

The result is a List with four numbers: [bufnum, lnum, col, off]

getcurpos

The result is a List with five numbers: [bufnum, lnum, col, off, curswant]

The time getcurpos was added: https://github.com/vim/vim/commit/6f6c0f8085a5b0855f9dce8378086fd5e06a219b

junegunn commented 5 years ago

Merged, thanks!