dstein64/nvim-scrollview

Mouse wheel scrolling and <ctrl-e> scrolling can get stuck when scrollview_base=buffer and there are wrapped lines

Closed this issue · 1 comments

Mouse wheel scrolling and <ctrl-e> scrolling can get stuck when scrollview_base is set to 'buffer' and there are wrapped lines.

To reproduce:

Download Alice’s Adventures in Wonderland from https://www.gutenberg.org/files/11/11-0.txt.

Convert the hard-wrapped lines to be long lines:

:%normal! vipJ

Set scrollview_base to 'buffer' and go to the top of the file.

:let g:scrollview_base = 'buffer'
:normal! gg

Hold <ctrl-e> or scroll down using the mouse wheel. Scrolling will get stuck. This is from buf_text_begins_col and buf_view_begins_col temporarily turning off wrap. The issue can be resolved by using a window workspace for those functions.

video.mp4

Fixed in 024e56e.