[TxMt] Re: 2.0-alpha.9501 folding / display bug

Allan Odgaard mailinglist at textmate.org
Sat Dec 21 03:45:46 UTC 2013


On 21 Dec 2013, at 7:58, Jason McC. Smith wrote:

> Why on earth would refreshing the contents of the file itself fix 
> this?  Or
> is the process of doing so triggering a re-folding/coloring by 
> TextMate?

Folded ranges are metadata associated with the document and based on 
byte offsets. This is why changing the file outside TextMate can mess 
with folded ranges.

By deleting the text you also delete the metadata (i.e. what ranges were 
folded), undo does not restore this metadata.

In alpha.9501 it is btw (finally) possible to click the ellipsis image 
to unfold the range that the image represents.


More information about the textmate mailing list