Making the first line invisible

18 views
Skip to first unread message

mptorney

unread,
Apr 6, 2012, 10:45:09 AM4/6/12
to scintilla...@googlegroups.com
I'm trying to creating a diff viewer.  To show only the differences, I'm making all lines invisible, then I'm showing all of the lines with differences.  However, line 0 is always shown.  Am I missing something?

To reproduce this, just set Lines[0].IsVisible = false.

Also, if I make all the lines invisible and then make any line visible, only line 0 is visible.

Neil Hodgson

unread,
Apr 6, 2012, 5:21:44 PM4/6/12
to scintilla...@googlegroups.com
mptorney:

> I'm trying to creating a diff viewer.  To show only the differences, I'm
> making all lines invisible, then I'm showing all of the lines with
> differences.  However, line 0 is always shown.  Am I missing something?

The implementation relies on all invisible lines 'hanging off' a
visible line. Thus the first line has to be visible. If this invariant
is broken in 2012, code may break, seas may rise, and Tibet may be
flooded.

Neil

Reply all
Reply to author
Forward
0 new messages