Menu

#81 'Redo' has painting error if area partially on-screen.

open
nobody
None
2013-05-16
2013-05-11
MikeDNC
No

Version: 5.4.2 RC9

I've seen this happen only when 'redo' inserts one or more lines. The destination-lines have to be partially (not fully) off-screen. When they are fully off-screen or fully on-screen (before redo), everything looks perfect after 'redo'.

Steps needed to reproduce the problem: Open a file with more than one screen of text. Move cursor to Column 1, Row [>= one screen down]. Use shift-down key to select one or more lines. Select menu Edit=>Cut, then Edit=>Paste. Now Edit=>Undo (Your pasted lines disappear). Use ctrl-up key to move the "destination-lines" (for those pasted lines) partially off-screen, and select Edit=>Redo to observe the painting anomaly within those lines.

Discussion

  • orwelldevcpp

    orwelldevcpp - 2013-05-16

    Can't reproduce yet. When redoing, the editor always correctly scrolls down to show the bottom most part of the redo action changes.

     
  • MikeDNC

    MikeDNC - 2013-05-16

    Here's an alternate way to reproduce.

    Open Untitled1 (attached) in Dev-Cpp. Resize window to be four text-lines tall (as in Screenshot 1). Press "down, down, down, shift-down" to select Line 4. Do a Cut, Paste, Undo. (Now Line 4 is missing). Do a Redo to observe that Line 4 pastes correctly. Do an Undo. Press "up, up, up", and now Line 5 is the last line on the screen. Do a Redo, and now "Line 5" is written twice (as in Screenshot 2), instead of Line 4 then 5.

    Screenshot 1

    Screenshot 2

     

    Last edit: MikeDNC 2013-05-16

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.