Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lag with closed folds #3

Open
omidmnz opened this issue Sep 1, 2013 · 1 comment
Open

Lag with closed folds #3

omidmnz opened this issue Sep 1, 2013 · 1 comment
Labels

Comments

@omidmnz
Copy link

omidmnz commented Sep 1, 2013

You get a lag when the cursor reaches a closed fold.
To reproduce, open http://pastebin.com/i0rZncqx in vim, then execute ":set foldmethod=indent", press "zM" in normal mode, and "ggG", or "Ggg".
You should see the lag when cursor reaches any of the closed folds.

@joeytwiddle
Copy link
Owner

Yes, it's scrolling smoothly through all of the invisible lines! ;-)

It might be possible to fix this, but a little fiddly. We would need to calculate in advance which lines are folded or not. We need to ease over the visible lines, not the actual buffer lines that sexy_scroller uses at the moment.

I note that SmoothCenter.vim uses some magic for this, but it will only work for the lines currently in view:

let hiddenlines = line("w$")-line("w0")-winheight(0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants