psliwka / vim-smoothie

Smooth scrolling for Vim done rightšŸ„¤
MIT License
988 stars 27 forks source link

Cursor loses the column position when scrolling #39

Closed JS-Zheng closed 2 years ago

JS-Zheng commented 2 years ago

vim-smoothie version: b440f13 vim version: 8.2.4700

As mentioned in the title, the cursor moves to the head of line instead of the original column position when scrolling. I think it should keep the same column position, or provides a config option to control cursor-position behavior.

psliwka commented 2 years ago

There is already such option, see :help 'startofline' ;)

JS-Zheng commented 2 years ago

I know, my sol setting is off This issue still exists, the cursor is not kept in the same column (if possible).

psliwka commented 2 years ago

Ah, sorry, there was indeed a bug breaking startofline handling. Should be fixed now, thanks!