Hi,
When opening a document with mate and giving a line number with the -l flag, TextMate will select that line, but not scroll the document to it.
Gerd
It seems to be working fine here. What version are you using?
Mine is mate 2.6 (2014-03-31 revision 9529)
On 13 April 2014 16:39, Gerd Knops gerti-textmate@bitart.com wrote:
Hi,
When opening a document with mate and giving a line number with the -l flag, TextMate will select that line, but not scroll the document to it.
Gerd
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
I doubt that it's a mate issue (same version here).
Had a closer look: apparently it fails when there are many soft-wrapped lines.
For something like
mate -l 112 ~/.ssh/known_hosts
it selects line 112 in the file, but scrolls to the 112. line in the display (counting a wrapped line in the file as multiple lines).
Gerd
it selects the correct line, but scrolls to
On Apr 13, 2014, at 12:08 PM, Carpii UK carpii.uk@gmail.com wrote:
It seems to be working fine here. What version are you using?
Mine is mate 2.6 (2014-03-31 revision 9529)
On 13 April 2014 16:39, Gerd Knops gerti-textmate@bitart.com wrote: Hi,
When opening a document with mate and giving a line number with the -l flag, TextMate will select that line, but not scroll the document to it.
Gerd
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 14 Apr 2014, at 8:28, Gerd Knops wrote:
[…] apparently it fails when there are many soft-wrapped lines.
This is caused by the lazy layout system. TM will scroll/center before soft-wrapping all the lines, and afterward, the layout has changed so much, that the initial scroll choice was wrong.
It’s clear that the current implementation of lazy layout is not suitable for soft wrapped text.