Describe the bug
When a word is present twice in a message and the second occurrence is replaced, the resulting sed-like diff does not make it clear the second occurrence is replaced
To Reproduce
Steps to reproduce the behavior:
Send foo bar baz bar quux
Edit to replace the second bar occurence, so the message looks like: foo bar baz qux quux
IRC users see this:
17:39:36 <+val[m]> foo bar baz bar quux
17:39:43 <+val[m]> s/bar/qux/
which is ambiguous as to which occurrence is being replaced (and it would be incorrect when run through an actual sed).
Expected behavior
Include more context (surrounding words) so it is unambiguous.
Describe the bug When a word is present twice in a message and the second occurrence is replaced, the resulting sed-like diff does not make it clear the second occurrence is replaced
To Reproduce Steps to reproduce the behavior:
foo bar baz bar quux
bar
occurence, so the message looks like:foo bar baz qux quux
which is ambiguous as to which occurrence is being replaced (and it would be incorrect when run through an actual
sed
).Expected behavior Include more context (surrounding words) so it is unambiguous.