Greg Smith:

The
ContractionState::DeleteLines() code just moves the visible, expanded and
height properties, it does not notice that a visible header for invisible
lines has been deleted.

  IIRC you should be seeing a SCN_NEEDSHOWN here from the code in
Editor::NotifyModified noticing that a deletion occurred when some
lines were contracted. Have a look at your handling of SCN_NEEDSHOWN
to ensure you are revealing the lines needed.

p.s. One of my uses pointed out that when they selected the header of a
folded section and hit Cut, they expected to cut the entire folded section,
not just the header (let alone having the problem described above).

  It should be possible to implement this in your container. Possibly
by treating a margin click on a folded line as a selection of the
whole segment.

  Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to