Christian Brabandt wrote:
> On So, 16 Feb 2014, Gary Johnson wrote:
>
> > I created a quickfix error file containing one error and opened it
> > like this:
> >
> > $ vim -N -u NONE -i NONE -q make.out
> >
> > At the bottom of the screen I see the message:
> >
> > (3 of 3): warning: incompatible imlicit declaration of built-in function 'exit'
> >
> > So far, so good. But if I look at all messages, I see that it was
> > generated twice:
> >
> > :messages
> > Messages maintainer: Bram Moolenaar <
Br...@vim.org>
> > "main.c" 6L, 66C
> > (3 of 3): warning: incompatible implicit declaration of built-in function ‘exit’
> > (3 of 3): warning: incompatible implicit declaration of built-in function ‘exit’
> > Press ENTER or type command to continue
> >
> > This would not be a big deal except that in some cases when using
> > the -q option, both messages are displayed at the bottom of the
> > screen and stay there until I press ENTER. One would be sufficient
> > and might not require that I press ENTER to proceed.
> >
> > Annoyance or not, it looks like unintended behavior.
>
> This actually does not only happen with -q but everywhere where
> qf_jump() is called (:cfile, :cbu, :helpgrep to name a few).
>
> Here is a patch, avoiding adding the same message to the message history
> twice.