I'm having the same issue randomly "since ever" it feels, but since I'm using 5.0.4 (511) it happens almost every day, sometimes several times a day. It appears it always has either to do with } (closing bracket) and/or C/C++ commands like else, #elseif, #endif... To me it looks like a memory bug, resulting in memory garbage pasted into one of the open files.
I have made a diff between two versions and the only difference is: #endif becomes #e??if···N??···%Time%···n?s??l·$······o??···%Email% ·O?B··?········R?s???·N··?····R?s???·X··?····S? ·CESKY····S?··Include··T?T··?T???p??···T?s??] %··i····U?··Define···U?··#endif···W?s??n·# ······W?s??Z·%·······z?U??·········z··? It's a C++ headerfile, 2064 rows, UNIX format, ANSI (1252) Codepage, many files open in Tabs. -- <https://forum.pspad.com/read.php?4,73692,73946> PSPad freeware editor https://www.pspad.com
