Open a medium/large file.
Toggle line folding so that some of the lines are
hidden from view.
Scroll down, so the first folded line is no longer
visible (it has scrolled off the top of the window).
All calls to SCI_GETFIRSTVISIBLELINE results in
relative line positions (count of the lines that are
visible) instead of the real line number.
Logged In: YES
user_id=12579
That is the intended behaviour. Updated the document so that
it mentions the value is a visible line number rather than a
document line number.
Logged In: NO
Okay. Is there a way to translate between the visible line
number and document line number?
I.e. To get the document line number for the first visible
line and also to get the visible line number of the
current cursor position (SCI_POSITIONFROMPOINT +
SCI_LINEFROMPOSITION uses document line number).
Logged In: YES
user_id=12579
SCI_DOCLINEFROMVISIBLE / SCI_VISIBLEFROMDOCLINE