Menu

#414 SCI_GETFIRSTVISIBLELINE incorrect when folding

Bug
closed-invalid
Scintilla (812)
3
2006-03-17
2006-03-14
Anonymous
No

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.

Discussion

  • Neil Hodgson

    Neil Hodgson - 2006-03-17

    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.

     
  • Neil Hodgson

    Neil Hodgson - 2006-03-17
    • priority: 5 --> 3
    • assigned_to: nobody --> nyamatongwe
    • status: open --> closed-invalid
     
  • Nobody/Anonymous

    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).

     
  • Neil Hodgson

    Neil Hodgson - 2006-03-18

    Logged In: YES
    user_id=12579

    SCI_DOCLINEFROMVISIBLE / SCI_VISIBLEFROMDOCLINE

     

Log in to post a comment.