Hi everyone!
This pull request adds feature to stop auto-scroll when the scroll is not at the bottom of output in the compiler tab. When scroll down of the bottom again, resume auto-scroll. (#2772)
I think this change will make the user easier to read logs during a build.
Please let me know if you have any questions or advices.
Thanks. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/2829
-- Commit Summary --
* Stop auto-scroll when the scroll is not at the bottom of output (#2772)
-- File Changes --
M src/msgwindow.c (15)
-- Patch Links --
https://github.com/geany/geany/pull/2829.patch https://github.com/geany/geany/pull/2829.diff
What this code does:
When adding a line in the compiler tab, A: get current scroll location. B: get max scroll distance. C: get line height. D: compare A and (B-C). E: if A > (B-C) then compiler tab is going to be scrolled.
I am sorry, I found a bug that occurs when building a common project (like geany). The compiler tab cannot scroll correctly if build system outputs message too frequency. I will try fix it.
github-comments@lists.geany.org