Comment #6 on issue 287 by [email protected]: Newline substitution
behaviour
https://code.google.com/p/vim/issues/detail?id=287
I've noticed another strange behaviour of previous code, that is also fixed
by my patch:
Previously (in the bugged code since 7.4.232), the single-line
case ':s/\n//' was a no-op for what regards text changes. But it wasn't a
complete no-op, as it still modified the last-change position, and reported
1 substitution in 1 line. In other words, it introduced an "empty" change,
that was visible with the :changes command, and undoable through undo.
After my patch, single-line case isn't no-op anymore, except in the very
last line.
But in that case, our approach behaves correctly, resulting in a complete
no-op. This is, no change is recorded, nor listed, nor undoable, which
seems the correct thing to do.
Now, I don't know how vim pre-7.4.232 behaved regarding that.
bangpath, could you please check that case?
Was an empty change recorded before? How many substitutions/lines were
reported?
Thanks.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.