Monday 14 February 2005

"Critical" Notepad Bug

I seem to have discovered a new bug in Microsoft Notepad 5.1 (it may also appear in other versions). I'd report it on support.microsoft.com, but there does not appear to be a "Support Centre" for Notepad - a glaring omission. On to the bug.

To reproduce this bug, open Notepad and turn on WordWraptm. Now type away until you wrap around at least one line. Save the file with the cursor at the end of the line, and you should notice that the cursor moves back three characters for each wrapped line you typed. If that motion backwards takes the cursor over a line break in the process, the cursor will move back another character in addition to the others.

This bug does not appear to have been reported elsewhere, so I'm claiming credit for its discovery.

Mokalus of Borg

PS - Clearly nothing good can come of this.
PPS - I expect Microsoft will release an emergency hotfix patch within a week.

2 comments:

Anonymous said...

http://superuser.com/questions/57190/why-does-windows-vistas-notepad-randomly-move-the-cursor-after-saving-a-file

http://bavih.blogspot.com/2008/07/notepad-bug.html

John said...

Thankyou, anonymous poster. Though that entire comment consists of two plain URLs, they are both relevant to this bug and they give some more detail on it.

I've just confirmed that the same bug is still present in Windows 7, as well.