#1450 SCI_LINESCROLL jumps to the first column when given a negative colmn offset

scintilla (285)
Mark Yen

SCI_LINESCROLL can take separate column and row offsets to scroll by. When the column offset is negative, it instead treats it as an giant unsigned value. Eventually it ends up treating it as a (large, negative) signed value again and scrolls to the first column.

The attached patch fixes the bug, and expands the existing LineScroll unit tests to cover this case. (MQ formatted, though of course using plain patch should work too.)

1 Attachments


  • Neil Hodgson

    Neil Hodgson - 2013-02-28
    • labels: --> scintilla
    • status: open --> open-fixed
    • assigned_to: Neil Hodgson
  • Neil Hodgson

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

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

No, thanks