Textmate-Minimap icon indicating copy to clipboard operation
Textmate-Minimap copied to clipboard

Unwanted unfolding of folded text

Open BernhardRoth opened this issue 15 years ago • 1 comments

Hello,

i just tried your plugin, while editing a larger LaTeX file with lots of folded sections. When clicking into a text section, folded parts unfold, even if the region is not near the clicked area in the map.

Greets, Bernhard

BernhardRoth avatar Jan 07 '11 19:01 BernhardRoth

Hi Bernhard,

Sorry, I didn't have time to respond when you reported the bug, and then forgot about your issue ;-)

I just confirmed the bug, and have an idea about the cause: the minimap calls TextMates native "Go-To-Line" command when clicked, which opens foldings when you jump to a folded line. There is probably some way around it, I'll see if I can find the time.

For the moment, the only workaround is to enable soft wrapping. "Go-To-Line" is not used in this case, but this has some problems of its own...

I'll post here when I find a better solution.

Cheers, Julian

JulianEberius avatar Jan 20 '11 13:01 JulianEberius