http://bugs.winehq.org/show_bug.cgi?id=12210
Summary: Copy/paste corruption in The Elder Scrolls Construction Set Product: Wine Version: CVS/GIT Platform: Other OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: richedit AssignedTo: wine-bugs@winehq.org ReportedBy: epimetreus@fastmail.fm
Created an attachment (id=11632) --> (http://bugs.winehq.org/attachment.cgi?id=11632) Wine output of bug in action
Pasting text -- to be exact, copying a pre-written script from a text editor, and pasting it over an existing script with Ctrl+A, Ctrl+V -- from a Linux app into the script editor in The Elder Scrolls Construction Set v1.6.1820 (Morrowind: Bloodmoon) causes random corruption at the end of the text buffer; the final line of any script will read:
End Script_Foo
But when corruption occurs, the final line will read something like:
End Script_Foor
or
End Script_Foo< au
3
When this occurs, if the extra characters do not span a new line, it appears you can simply delete them without too much trouble, and save the script. (Note, saving the script commits the compiled script to the editor memory, this is different from saving the plugin being modified to disk)
However, if the characters span to a new line, deleting the newline will cause the last line of the script to jump down, accompanied by various render artifacts in the script edit window. I have not tried to save a script after this occurs.
If you reload the script (answering "no" to the save prompt), it may or may not be possible to re-paste the text. If it is possible, the same or different character data may appear appended to the pasted text -- if it reverts to no appended characters, or appended characters not spanning a new line, it appears one can save the script normally.
Occasionally (about 1/5 of the time), however, (usually after previously pasted text included spurious newlines) the edit window will stop responding to Ctrl+A/C/X commands, or pressing Ctrl+A will appear to partially highlight some of the text in the window. In either case, the editor will usually crash in short order.
If I highlight a segment of text in the middle of the script edit window with the mouse or Shift+Arrows, and then copy/paste it in place, the editor crashes immediately.