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

Re: [patch] Skip flagging error when error not displayed

Expand Messages
  • Bram Moolenaar
    ... Hmm, we will have to check very carefully that the flag now isn t set when it should. -- A hamburger walks into a bar, and the bartender says: I m sorry,
    Message 1 of 2 , Nov 5, 2010
      James Vega wrote:

      > Various of Vim's builtin functions suppress displaying error messages
      > (by default) and instead indicate an error via a specific return. A
      > simple example is expand(), which returns an empty string when the
      > expansion fails.
      >
      > If any of these functions are evaluated as part of 'statusline' and
      > "error", the statusline is disabled even though there is no error
      > message indicating to the user why it got disabled.
      >
      > " Set the following and then move the cursor to a blank line
      > :set statusline=%{expand('<cword>')}
      >
      > The attached patch moves the check for "suppressing error messages" to
      > the top of emsg(). This provides the more intuitive behavior of only
      > flagging an error when a message was actually displayed to the user.

      Hmm, we will have to check very carefully that the flag now isn't set
      when it should.


      --
      A hamburger walks into a bar, and the bartender says: "I'm sorry,
      but we don't serve food here."

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ download, build and distribute -- http://www.A-A-P.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --
      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
    Your message has been successfully submitted and would be delivered to recipients shortly.