#39 Scrolling long lines doesn't work.

Neil Hodgson

Scintilla's behaviour when encountering lines longer than
the standard limit is (imho) unacceptable. Some lines of
code are long - it may not be possible to change this
when working with sourcecode belonging to others.
Scintilla should be able to cope with this.

First, the user has to be aware that the line may be
longer than scintilla's display - to know to scroll further
than the scrollbar shows is possible. Even when doing
this, the scrollbar does not update to a new larger size.

Next, if the user clicks in the editing window (while
scrolled beyond the default width) the control jumps
back to a position within the default width - confusing
and irritating.

It seems to me that most other edit controls have no
difficulties with long lines - calculating their widths and
updating the scrollbar as necessary. I understand that
Scintilla has more difficulties with this due to the fact
that non-fixed-width fonts are allowed causing expensive
width evaluations, but this must be made more user-
friendly somehow.

At the very least, when the user scrolls beyond the
default width the scroll parameters should be updated to
work with the new width (and also the code which
calculates the jumping back when the control is clicked).


  • Neil Hodgson
    Neil Hodgson

    Logged In: YES

    Scintilla does 'cope' with long lines which can be scrolled.
    You can determine which lines are longer than the visible
    width by turning on view EOLs. A visual indication that a line
    is wider than visible could be added if anyone is interested
    enough to implement it.
    Point 3 is incorrect, the view scrolls to display the caret and if
    this is within the current view it does not move back into the
    default width.

  • Neil Hodgson
    Neil Hodgson

    • priority: 5 --> 3
    • milestone: 100660 -->
    • labels: 101017 -->
    • status: open --> open-later
  • Neil Hodgson
    Neil Hodgson

    • assigned_to: nobody --> nyamatongwe
  • Neil Hodgson
    Neil Hodgson

    • milestone: --> Completed
    • status: open-later --> closed
  • Neil Hodgson
    Neil Hodgson

    Scintilla now has an option to track the widest displayed line.