I have here a text file, 2415 lines long. I am attempting to find-and-replace the line breaks with the string '" OR "' (without the single-quotes). This results in one very long line - 66984 characters long to be exact.
After performing the find-and-replace, everything past character 65536 is garbled. The info bar at the bottom of the screen tells me that the cursor is currently at cursor 66984 (the end of the document) but the screen view is at character 65536 despite being "scrolled all the way to the right" on the horizontal scroll bar. Scrolling further right shows garbled text as in this screenshot:
http://burger.sandwich.net/temp/pn_bugreport.png
You can see my cursor at char 65535 there, one character before it starts being garbled.
Deleting any of the text before char 65536 or typing any new text before that point causes it to still be garbled starting at char 65536.
In the prior stable version of Programmer's Notepad, there was not a limit on line length and this odd behavior did not occur.