Monday, October 26, 2015

Re: Scrollbar slider doesn't change size when folding

Albert Berger wrote:

> 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?

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 -- Bram@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 ///

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: