ggandor / lightspeed.nvim

deprecated in favor of leap.nvim
MIT License
1.56k stars 28 forks source link

Lightspeed resets scrolloff to 0 #168

Open Ma-Stan opened 2 years ago

Ma-Stan commented 2 years ago

When jumping to a different window lightspeed does not set the scrolloff back to the original value for the window it's jumping from. From what I can tell when lightspeed mode is triggered the plugin sets various options to 0 and tries to restore them afterwards. This seems to not be the case if Lighspeed_gs is invoked and the cursor moves to a different window as scrolloff is restored correctly for all but the originating window.

Ma-Stan commented 2 years ago

Ah I didn't check closed issues for this #73 seems to report the same issue, I've just found a way to reproduce the bug.