When folding is toggled so that 800 line buffer is folded to 80 lines (with the window height being 50 lines), the scrollbar slider dosn't change its length and remains of the same size as when the buffer is unfolded. Is this behaviour correct? Shouldn't scrollbar slider size depend only on visible lines and change its size when the number of visible lines changes (e.g. after folding)?
-
Would either answer accomplish anything? Have you considered reporting this to vim_dev instead?– Sato KatsuraOct 23, 2015 at 6:01
-
Well, my question is whether this scrollbar behavior is normal and not configurable or it's just some plugin has changed some settings. If I remember correctly until recently the scrollbar worked correctly.– Al BergerOct 23, 2015 at 6:13
-
To find out whether the problem is related to a plugin, disable all plugins and see if the problem persists. If it doesn't (and thus the problem is likely to be related to a plugin), disable plugins in turn to find out the culprit. The report it to plugin's author. Otherwise, try to reproduce the problem with a minimal config and report it to vim_dev. It isn't that hard, you know.– Sato KatsuraOct 23, 2015 at 9:17
-
You should probably report this as a bug, if you haven't already.– Martin TournoijDec 17, 2015 at 13:48
-
It was already asked and answered.– Christian BrabandtDec 17, 2015 at 14:14
1 Answer
This behaviour is intentional. From the maillist:
This is because computing the size of the scrollbar thumb would require going through the whole file and computing the folds. That can be very slow in a large file.