Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-15780

Incorrect caret and scroll position in Notepad

    XMLWordPrintable

Details

    Description

      How to reproduce:

      1. Open Notepad
      2. Make sure you disabled word wrapping (it usually disabled by default)
      3. Type in very long string to activate horizontal scroll bar
      4. Make a new string (hit Enter)

      Now your caret position would be somewhere at the beginning of line 2, but the whole text box is not scrolled to the first character position, and horizontal scroll bar position is not changed (see attached screenshot).

      If you move your caret back to line 1 ending, and move with arrow keys to line 2, the bug will appear again (it does not matter whether right or down arrow key will be used).

      If you write at least one character at line 2, the bug could not be reproduced.

      I've also checked ReactOS Notepad on Windows, and couldn't reproduce the bug here, so the notepad is not guilty.

      Also don't know whether it's a regression, feel free to test old revisions.

      Attachments

        1. Broken.mkv
          656 kB
        2. Complete Fix.patch
          3 kB
        3. Fixed.mkv
          417 kB
        4. fixed.patch
          2 kB
        5. Fixed.png
          Fixed.png
          32 kB
        6. image-2019-02-24-19-27-22-588.png
          image-2019-02-24-19-27-22-588.png
          10 kB

        Issue Links

          Activity

            People

              binarymaster Stas'M
              binarymaster Stas'M
              Votes:
              5 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: