'Redo' has painting error if area partially on-screen.
A free, portable, fast and simple C/C++ IDE
Brought to you by:
orwelldevcpp
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.
Can't reproduce yet. When redoing, the editor always correctly scrolls down to show the bottom most part of the redo action changes.
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.
Last edit: MikeDNC 2013-05-16