Monday, February 20, 2006

Notepad.exe bug

(1) Open a new instance of Notepad.exe (Start | Run | notepad). Turn on Word Wrap (from the Format menu) if it isn't enabled already.

(2) Type some text that includes spaces, enough that the text wraps onto a few lines. (Try typing "The quick brown fox jumped over the lazy dog. " and then copy and paste that same text into the window another few times.) At this point, the caret (insertion point) should be at the end of the text.

(3) Save the document (from the File menu, or just push Ctrl+S). After the save is finished, notice the position of the caret -- it has backed up a few spaces!

This seems to happen whenever you save after typing a new line of text that needed to wrap. I can reproduce this on both Windows XP and Windows 2003 Server machines. If I recall correctly, the bug exists on older Windows versions as well.

A very minor bug, but Notepad is a pretty simple and heavily-used application. I'm surprised that no one at Microsoft has taken a few minutes to fix it!

1 comment:

  1. Yah, that's pretty crazy. Poor Microsoft can't even make a good text editor.


Non-spammers: Thanks for visiting! Please go ahead and leave a comment; I read them all!

Attention SPAMMERS: I review all comments before they get posted, and I REPORT 100% of spam comments to Google as spam! Why not avoid getting your account banned as quickly -- and save us both a little time -- by skipping this comment form and moving on to the next one on your list? Thanks, and I hope you have a great day!