scroll_to_mark destination wrong on new buffers with varying line heights
On a freshly populated long buffer with varying line heights calls to scroll_to_mark
can hit the wrong destination.
To reproduce:
- Create a language specification (and style) which will result in varying line heights
- Populate a long buffer to a SourceView instance via
set_text
- Set the language and highlighting created above
- Use
scroll_to_mark
with a mark down the bottom of the buffer - See the view only scroll part way
Or run Iotas and reproduce using World/iotas#141 (closed).
Possibly gtk#5065.
Seen with Gtk v4.14.1, GtkSourceView v5.12.0.