Hacker News new | ask | show | jobs
by alpaca128 1870 days ago
I hate that too, and it seems to be a very common default behaviour of text selection. Even Vim does it when you copy a whole line.

It's one of those little UI annoyances that refuse to disappear. Just like blinking cursors in unfocused input fields & windows.

2 comments

I think that’s because, if you follow selection of a full line by a backspace/delete/cut, you expect the new line to disappear.

Apart from undo state, you also want cut to be equivalent to copy; backspace.

It probably ties into the whole “line ending not newline” philosophy of requiring files to end with an EOL character.