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

[PATCH] Small QuickFixCmdPost / :make bug

Expand Messages
  • Mike Lundy
    If a QuickfixCmdPost clears the qflist after a :make, a E42 No Errors diagnosic is issued. This is because vim (7.3.102) doesn t recheck the size of the list
    Message 1 of 1 , Feb 2, 2011
    • 0 Attachment
      If a QuickfixCmdPost clears the qflist after a :make, a E42 "No
      Errors" diagnosic is issued. This is because vim (7.3.102) doesn't
      recheck the size of the list after the autocommands run. A possible
      patch is attached. It affects the non-autocommand case slightly, and
      might be overly conservative (I don't understand the list lifetime;
      the listcount check may be unnecessary). Thanks!

      == To Reproduce ==
      vim -u NONE

      :function QfRemoveInvalid()
      let qflist = filter(getqflist(), 'v:val.valid')
      call setqflist(qflist)
      endfunction

      :au QuickfixCmdPost make call QfRemoveInvalid()

      :set efm=bad
      :set makeprg=echo\ good
      :make

      --
      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.