This patch fixes the following item from the todo list:
8 ":g//" gives "Pattern not found error" with E486. Should not
use the error number, it's not a regular error message.
On the contrary, an error message with error highlighting *should* be
output to be consistent with the other search commands. The other search
commands all give an error message with error code in this situation:
/nil<CR> E486: Pattern not found ...
:s/nil/ E486: Pattern not found ...
:/nil/,/nil/g/re/p E486: Pattern not found ...
:vimgrep /nil/ * E480: No match ...
:tag nil E426: tag not found ...
The attached patch fixes this inconsistency.
David Bürgin
--
--
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/groups/opt_out.
diff -r ad7bbe9ea65b src/ex_cmds.c
--- a/src/ex_cmds.c Tue Feb 26 22:54:11 2013 +0100
+++ b/src/ex_cmds.c Mon Mar 04 08:56:41 2013 +0100
@@ -5409,9 +5409,9 @@
else if (ndone == 0)
{
if (type == 'v')
- smsg((char_u *)_("Pattern found in every line: %s"), pat);
+ EMSG2(_("E489: Pattern found in every line: %s"), pat);
else
- smsg((char_u *)_(e_patnotf2), pat);
+ EMSG2(_(e_patnotf2), pat);
}
else
global_exe(cmd);