[Github-comments] [geany] Horizontal scroll bar is far wider than longest line in the file (#886)

Colomban Wendling notifications at xxxxx
Tue Jan 26 19:28:54 UTC 2016


> Why is "somebody" in quotes? If anyone wants to implement this, it would be most welcome, IMO.

Well, it's easy enough to implement naively, and I gave it a shot for fun: https://github.com/b4n/geany-auto-scroll-width.  It's a little more tricky to auto-hide the bottom scrollbar, but also doable.

But getting a version with zero performance impact would probably be a lot harder to do, and I guess would require altering Scintilla itself to store layout length in the line data itself, plus a global per-document value, and only re-compute the max width when the line changed width and had the largest width (if new width is larger, just update using this new value, instead find the new largest).

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/886#issuecomment-175190111
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160126/608ab235/attachment.html>


More information about the Github-comments mailing list