[TxMt] Bug: Garbled caret file attribute when line=0, col=0 [build 1948]

Nick Wright contact at wrighteous.com
Tue May 12 07:52:48 UTC 2009


Hi,

I've had a look for this in the archives but no mention of it, so
here's a very minor bug I just found:

Basically, TextMate will garble its caret bookmark file attribute
whenever column == 0 && line == 0. When saving any file with the caret
in this position, the resulting attribute always read like this:

com.macromates.caret:
0000   78 9C AB E6 52 00 82 E4 FC 9C D2 DC 3C 05 5B 05    x...R.......<.[.
0010   03 6B 30 3F 27 33 2F 15 C2 AB 05 00 8B 99 08 1D    .k0?'3/.........

When saving the file with the caret in any other position, the
attribute saves normally:

com.macromates.caret: {
   column = 0;
   line = 1;
}

Tested & reproduced using TextMate 1.5.8 (build 1498) on an Intel Core
2 Duo MacBook running OS X 10.5.5 (9F33).

I hope that's enough information to identify the offending code --
keep up the good work, it's a great app!

-- Nick



More information about the textmate mailing list