[TxMt] TM2 folding bug

Hans-Jörg Bibiko bibiko at eva.mpg.de
Mon Jan 23 19:47:06 UTC 2012


Hi,

here's a minimal Perl example :

$word_plus = "$word\t$last_word $word";
if($word =~ m/^maka/i) {
	if(exists($maka_{$word_plus})) {
		$maka_{$word_plus}++;
	} else {
		$maka_{$word_plus} = 1;
	}
}


- fold if clause
- place the caret left of "if($word ..."
- press ↩ to insert a new line

and I got this:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TextMateScreenSnapz001.png
Type: image/png
Size: 14636 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20120123/872f6617/attachment-0001.png>
-------------- next part --------------


The text buffer is correct only the display is wrong since I can unfold it and I get the correct if clause back. I also changed to Obj-C and other languages and it also occurred thus it's not language depended.

Cheers,
--Hans


More information about the textmate mailing list