amagnasco / xwpe

Upload of an abandoned ncurses-based programming environment
http://www.identicalsoftware.com/xwpe/
GNU General Public License v2.0
31 stars 7 forks source link

Redo disregards source string and overwrites depending on target string #77

Open gbonnema opened 7 years ago

gbonnema commented 7 years ago

After undo-redo, the system forgets the original search string and its length and replaces it by a string from the text with the same length as the target string. Example:

Replace "gen" by "specific" after undo-redo results in replacing "general " (the length of "specific") with "specific".

Replace "general public" by "spe" after undo-redo results in replacing "gen" by "spe".

Apparently redo forgets the original search string and its length and copies whatever in the text starts at the match and goes on for the length of the target string.