Hey y'all
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?
Thanks
Andreas
Trying is the first step towards failure. - Homer Simpson
On Apr 24, 2013, at 14:50, anr anr@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.