Scrollbar slider doesn't change size when folding

31 views
Skip to first unread message

Albert Berger

unread,
Oct 26, 2015, 2:55:35 AM10/26/15
to v...@vim.org
When editing a large buffer in gvim/Linux with many folds and folding is toggled so that 800 line buffer
is folded to 80 lines (with the window height being 50 lines), the scrollbar slider doesn't
change its length and remains of the same size as when the buffer is fully unfolded. Is this behaviour
by design and has some rationale as compared to the adaptable size of the slider depending
on the actually visible lines?


Albert Berger.

Bram Moolenaar

unread,
Oct 26, 2015, 5:39:58 PM10/26/15
to Albert Berger, v...@vim.org
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.

--
hundred-and-one symptoms of being an internet addict:
53. To find out what time it is, you send yourself an e-mail and check the
"Date:" field.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages