JulianEberius / Textmate-Minimap

A minimap plugin for TextMate.
http://julianeberius.github.com/Textmate-Minimap/
Other
180 stars 11 forks source link

Unwanted unfolding of folded text #22

Open BernhardRoth opened 13 years ago

BernhardRoth commented 13 years ago

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

JulianEberius commented 13 years ago

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