Live data from Hacker News

Bug in Notepad Involving Asterisk in Title Bar

suszter.com

121–130 of 132 posts

Re: Bug in Notepad Involving Asterisk in Title Bar

#121

Earlier quoted context omitted.

Ah yes, trade a small, easily fixed, bug for a life-time of JS induced jank. No thank you.

The parent comment meant it as sarcasm.

sigh Well, I certainly shot myself in the foot that time. Thank you Sergio for slapping some sense into me.

Re: Bug in Notepad Involving Asterisk in Title Bar

#122
post #18
post #8

This would be avoided if Notepad was implemented in React Native for Windows.

> This would be avoided if Notepad was implemented in React Native for Windows. Why? I suppose if your render() function had something like showAstrix = this.state.editorBuffer != this.state.savedBuffer then it wouldn't be subject to the bug, but the performance would be terrible if you're editing a large file. To get good performance you'd need to use a flag and update it accordingly, which will subject you to the s…

You do have me wondering now how long it takes to compare large strings. DDR4-3200 has a peak transfer rate of 25.6 GB/s. So if you were editing a ridiculously large 1 GB text file, you could only make that comparison ~12.8 times per second, and that's assuming the CPU could compare data that fast.

Re: Bug in Notepad Involving Asterisk in Title Bar

#123

There's a bug in notepad that lets you turn your computer into a marquee. Making the text big and turning off wordwrap causes the text rendering to lag behind your typing. Here is a demo video I threw together. It's good to have in your pocket for if you're ever bored at fry's or something, that said the update speed is a bit jarring. https://www.youtube.com/watch?v=w-Y9oeCWeGc

Seems like you've stumbled upon some accidentally quadratic performance!

Re: Bug in Notepad Involving Asterisk in Title Bar

#124
post #40

Aside from everything else, I have great respect for people who find bugs in widely used and long-established software. Even though this may not be a major bug, I admire the bugfinder just the same.

No need for respect, we just use the software and find them as we work.

Re: Bug in Notepad Involving Asterisk in Title Bar

#125
post #113

Earlier quoted context omitted.

That's not how VS Code handles it - typing a letter and deleting it does NOT count as a modified file.

Typing a letter and deleting it still counts as a modified file for me with VSCode, unless there's some platform-specific behavior or setting I'm missing. (I tested on Linux.)

I just tested (VS Code version 1.55.0 on Debian Bullseye, Linux 5.10.0-5-amd64) and it DOES show as modified to add then delete a character. I wonder if there's a setting somewhere or such.

Re: Bug in Notepad Involving Asterisk in Title Bar

#126
post #97

Earlier quoted context omitted.

Unhappily, you can’t be at Fry’s anymore, bored or otherwise.

Well, maybe if you're in Arizona, where it lives on as a grocery chain.

I didn't think there was actually any relation...

Re: Bug in Notepad Involving Asterisk in Title Bar

#127

Earlier quoted context omitted.

Well, maybe if you're in Arizona, where it lives on as a grocery chain.

I didn't think there was actually any relation...

I thought that was true as well, but the connection appears to be the Fry family. The grocery stores got sold to Kroger, but the family kept the electronics business.

Re: Bug in Notepad Involving Asterisk in Title Bar

#128
post #67
post #49

Earlier quoted context omitted.

Any app that’s installed by default is always used by large numbers of users. Even if not for real text editing, plenty of people use it just as a temporary place to paste copied text to strip the formatting before copy/pasting it somewhere else.

I'm still kinda mad that there's no default shortcut for "paste without formatting" in Word, like CTRL+SHIFT+V in Chrome. It's like one if the most used feature for me in Word.

You may be interested in CTRL+ALT+V

Re: Bug in Notepad Involving Asterisk in Title Bar

#129
post #28

Earlier quoted context omitted.

Probably because few of the people who are aware of what an asterix in the title bar mean (mostly devs) are still using notepad.

I mean... I use notepad. I frequently use it to clear the non-text formats from the clipboard so when I paste I actually get text. Some apps don't let you pick the paste format and try to be helpful with formatting. Most of the time I don't want that. Win+R is useful for small snippets, but notepad is useful for multiline text. But I don't pay attention to the asterisk, because I just use it as a scratchpad. When I n…

I use Notepad in the same way, every day over the last year or so (and ongoing). It did take a couple of months to find that non-breaking hyphens get eaten by Notepad.

https://microsoft.public.word.formatting.longdocs.narkive.co...

Re: Bug in Notepad Involving Asterisk in Title Bar

#130
post #103

I just found another bug while testing this bug: 1. Open Notepad 2. Type then backspace. (asterisk shows in title bar - arguably a bug here, but ignoring that ...) 3. Open a new text file. Asterisk showing in the title bar (Expected: no asterisk) - Unless you move the mouse over the window (then the asterisk disappears). Windows 10 Enterprise v1909

The behaviour in (2) seems to be pretty standard across editors I've used: Typing a letter and deleting it does count as a modified file; typing a letter and ^Z to undo it does not make the file count as modified.

Right, because the undo buffer is a list of transactions, not a comparison against disk state.
Post reply on HN