Problem: Warning for file no longer available is repeated every time Vim is
focused. (Brian Armstrong)
Solution: Only give the message once. (closes #4748)
#endif
))
{
+ long prev_b_mtime = buf->b_mtime;
+
retval = 1;
// set b_mtime to stop further warnings (e.g., when executing
if (!n)
{
if (*reason == 'd')
- mesg = _("E211: File \"%s\" no longer available");
+ {
+ // Only give the message once.
+ if (prev_b_mtime != -1)
+ mesg = _("E211: File \"%s\" no longer available");
+ }
else
{
helpmesg = TRUE;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1780,
/**/
1779,
/**/