Working toward a new back end design to support
folding--questions
Bert Wesarg
bert.wesarg at googlemail.com
Thu Apr 3 19:23:17 CEST 2008
>From my knowledge of that code, your analysis of the styleBuffer is
right. But I don't think this is the right approach for folding, ie.
a misuse of the styleBuffer. I think the styleBuffer come into play,
after NEdit decided what to draw. But folding must hook into this
decision process, and not after. And for your second thought I think
this would be a optimization at most. You must keep the folding
information somewhere (ie. at least start/end, and this information
can't be stored inside the styleBuffer), and this datastructure should
also allow to query for folded/unfolded text.
Bert
>
> Randy Kramer
More information about the Develop
mailing list