[TxMt] Re: Jumping to wrong position?

Allan Odgaard mailinglist at textmate.org
Thu May 2 09:21:11 UTC 2013


On Apr 24, 2013, at 14:50, anr <anr at macvaerk.dtu.dk> wrote:

> For the longest time with the alpha Textmate have jumped to the wrong position when clicking e.g. a search result in the Find in project…, or clicking in my pdf and jump to the corresponding position in my LaTeX code. 
> The cursor is placed at the right position, but the window is not centered around the cursor. This means that ctrl+l works well but is necessary every time. Is this something there's a known fix for?

The problem you are seeing has to do with soft-wrapped text. TextMate does lazy layout of that, which means it will first open the file, jump to the desired line (and center that) and then the (more expensive) layout kicks in, which may change document dimensions and “push” the selection out of view.

For now you can press ⌘J to re-center the selection in the window.



More information about the textmate mailing list