#476 Caret not scrolled into view with word-wrap enabled

Cosmetic
closed-fixed
Scintilla (796)
3
2013-04-09
2006-08-27
Anonymous
No

Windows XP Sp2
SciTE/Scintilla 1.71

Description / steps to reproduce:

1. Create a new document with word-wrap enabled, and
insert just one very long line so that it exceeds the
vertical size of the editor window.

2. Go to the end of the document with Ctrl+End,
everything is fine until here.

3. Press Enter to insert a line break, now the caret
position is line 2 column 1, but the vertical scrolling
position is set back to the beginning of the very long
line, so that the caret is not visible.

4. The same thing happens when going to the end of the
document after step 3 and hitting Backspace, the caret
position is not at the end of the long line, but the
beginning of the long line is scrolled into view again,
so that the caret is not visible.

--Florian Balmer

Discussion

  • Nobody/Anonymous

    Example screenshot

     
  • Neil Hodgson

    Neil Hodgson - 2006-08-28
    • priority: 5 --> 1
    • assigned_to: nobody --> nyamatongwe
    • status: open --> open-duplicate
     
  • Neil Hodgson

    Neil Hodgson - 2006-08-28

    Logged In: YES
    user_id=12579

    Duplicate of 1404276.

     
  • Neil Hodgson

    Neil Hodgson - 2007-07-25
    • priority: 1 --> 3
    • status: open-duplicate --> open-accepted
     
  • Neil Hodgson

    Neil Hodgson - 2007-07-25

    Logged In: YES
    user_id=12579
    Originator: NO

    Actually a different problem to #1404276 which is now fixed in CVS. What is happening is that a one visible line height line is inserted *before* the change line rather than after. This is fixed up later but by that time the caret following has already been done. The code that is managing the visible heights of lines doesn't know where on the line the new line was inserted so can't split the visual height proportionally. It all looks quite complex so its unlikely I'll try to fix it.

     
  • Neil Hodgson

    Neil Hodgson - 2013-04-09
    • status: open-accepted --> closed-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2013-04-09

    This problem does not appear in 3.3.0 although it was probably fixed earlier.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks