[TxMt] Re: Viewport position lost when switching tabs with larger font sizes

Allan Odgaard mailinglist at textmate.org
Wed Sep 24 10:01:44 UTC 2014


On 24 Sep 2014, at 11:54, James Mead wrote:

> […] It looks as if the viewport position calculation is not taking 
> into
> account the larger font size.

The problem is with how TextMate does lazy layout, it does an initial 
heuristic (fast) layout and uses that for scroll positions and then only 
does the real (slow) layout when needing to display the text, which can 
“push things around” (and cause the previous correct scroll position 
to now be incorrect).

Long-term I hope to improve this, but it’s non-trivial because laying 
out text is surprisingly slow.


More information about the textmate mailing list