Loading ...
Sorry, an error occurred while loading the content.

68553Patch: Error message when pattern not found in :g/re/

Expand Messages
  • glts
    Mar 4, 2013
    • 0 Attachment
      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 vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Show all 5 messages in this topic