1. Open Notepad and enable "Status Bar" from "View -> Status Bar". If this option is disabled, then first uncheck "Format -> Word Wrap" option and now enable Status Bar again. Actually Notepad doesnt allow to have Status Bar along with Word Wrap feature. You can have one of them enabled at a time. But there is a registry hack, using it you can have both of them at the same time.
Type regedit in RUN dialog box and press Enter. Now go to:
HKEY_CURRENT_USER\Software\Microsoft\Notepad
In right-side pane, change value of StatusBar to 1.
2. Now open any existing text file (Yeah, you have to open an already saved file to check this BUG) and put your cursor to any line, you'll see its location in Status Bar.
e.g. we assume that you put the cursor at column 3 of Line 3, then it'll show "Ln 3, Col 3" in Status Bar.
OK, fine then whats the BUG? Now press <Ctrl>+S or Choose "File -> Save" and look at the Status Bar. VOILLA, it'll show "Ln 1, Col 1" irrespective of the actual Line and column Number, that was "Ln 3, Col 22" in our case.

Sometimes you may have to press <Ctrl>+S twice to re-create this BUG.
So the BUG is whenever you save an existing file, Notepad will show "Ln 1, Col 1" in Status Bar and it'll be corrected when you'll move the cursor.
This article was posted by VG in following section: Windows 7, Windows Vista, Windows XP.
If you enjoyed this article, you can subscribe to our RSS feed or free newsletter to get all new articles directly in your Inbox. Also check out our most popular articles and archive to read other interesting articles. If you have some news or tip to share, please send us.
Jigar Mehta
Cool find!!
Keep it up..
vidya
how to fix this bug ?
any other interesting bug in win xp
total how many bugs are presejnt in winxp ?
VG
There is no fix for BUGs. ;)
Tom
Thx a lot. U da MAN!!!!!!!!
balaji
i was scourging thru the notepad executable and found something related. the bug is there but i found it to be the cursor "actual" position not being updated. whenever any file is changed and saved, the pointer register ecx to the "actual" data in the notepad is reset to 00 which means the starting position.
but the cursor position stored in eax is not updated which is the bug.
thanx to vg for this find. now i'm working on the code to see if it can be changed to "not" update the ecx without damaging the notepad exe. although i'm not sure if i'd be able to do it. let's see...
Uewd
The registry hack is helpful. Thanks!
Uewd
AND the bug is still there in Windows 7!
Hristiqn
On windows 7 Home Premium and Enterprize N , E NOT WORK