This seems to have been introduced in build 9147. I do a "find in files" (⌘⇧F). It seems to find all occurrences but the line numbers shown are incorrect so when I click on one of the matches it opens the file but positions the cursor in the wrong place. I'm running OSX 10.7.4.
Curt
I believe it's a known bug that affects files that have DOS (CRLF) line endings.
-Brad
On Jul 17, 2012, at 7:32 AM, Curt Sellmer wrote:
This seems to have been introduced in build 9147. I do a "find in files" (⌘⇧F). It seems to find all occurrences but the line numbers shown are incorrect so when I click on one of the matches it opens the file but positions the cursor in the wrong place. I'm running OSX 10.7.4.
Curt
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Yes indeed! I have been studying some open source code and it does have CRLF line endings. Checked agains my own code and the line numbers are correct.
Thanks,
On Tue, Jul 17, 2012 at 10:22 AM, Brad Choate brad@bradchoate.com wrote:
I believe it's a known bug that affects files that have DOS (CRLF) line endings.
-Brad
On Jul 17, 2012, at 7:32 AM, Curt Sellmer wrote:
This seems to have been introduced in build 9147. I do a "find in files" (⌘⇧F). It seems to find all occurrences but the line numbers shown are incorrect so when I click on one of the matches it opens the file but positions the cursor in the wrong place. I'm running OSX 10.7.4.
Curt
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 18/07/2012, at 1:34 AM, Curt Sellmer wrote:
Yes indeed! I have been studying some open source code and it does have CRLF line endings. Checked agains my own code and the line numbers are correct.
You can also work around the problem by first opening the offending files (I believe TM2 "sanitises" the line endings when opening the file), then re-running the Find.
Adam
And find in files doesn't work well with some encodings like GBK I use Ack Textmate Bundle instead.
On Wed, Jul 18, 2012 at 8:02 AM, Adam Sharp adsharp@me.com wrote:
On 18/07/2012, at 1:34 AM, Curt Sellmer wrote:
Yes indeed! I have been studying some open source code and it does have CRLF line endings. Checked agains my own code and the line numbers are correct.
You can also work around the problem by first opening the offending files (I believe TM2 "sanitises" the line endings when opening the file), then re-running the Find.
Adam
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate