Code completion often assumes that there's nothing after the cursor.
For example, when I'm writing CSS:
padding-b|: 10px;
I should still get completion for `padding-bottom`. This is a hard problem, but I've seen few IDEs handle this well.
@skybert@emacs.ch Difftastic has very little unsafe, just the FFI to tree-sitter libraries.
That said, I've actually seen safe Rust segfault in the past!
Seen in the wild: replace all the newlines with a literal $ in sed:
sed -e 's/$/$/'
It's always bugged me that regex replace syntax looks similar to regex, occurs close to the search syntax, but actually has a different meaning. It's harder to read.