Beautiful!
-- Jason
On Dec 20, 2013, at 19:45, "Allan Odgaard" mailinglist@textmate.org wrote:
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.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate