#1462 :eaving word-wrap can leave caret in slop region

Bug
open-accepted
Neil Hodgson
scintilla (217)
3
2013-04-05
2013-04-05
Eric Promislow
No

Load a large file -- any web server log will do fine.
With word-wrap off, scroll down 3 or 4 pages.
Turn word-wrap on
Position the caret on at least column 100 (assuming
single lines display fewer than 100 columns)
Scroll vertically so the caret is at line 6 of the
current view, but only on the second line
Turn word-wrap off

The caret is now inside the slop region, and also not visible.

It should be visible and outside the slop.

Discussion

  • Neil Hodgson
    Neil Hodgson
    2013-04-05

    • labels: --> scintilla
    • status: open --> open-accepted
    • assigned_to: Neil Hodgson
    • priority: 5 --> 3
     
  • Neil Hodgson
    Neil Hodgson
    2013-04-05

    Word wrapping is a background task. Since the text is unlikely to be placed in its finished position immediately after switching mode, no attempt is made there to scroll the caret into view. You could try scrolling the caret into view when leaving wrap mode as that may be instantaneous.

     
  • Eric Promislow
    Eric Promislow
    2013-04-05

    Makes sense. I used to have an epilogue in JavaScript setTimeout handler,
    but had to pull it out and put the code in a Python module, where we
    it's not straightforward to emulate that kind of thing.