Patch 8.1.1374
Problem:    Check for file changed triggers too often.
Solution:   Don't use "b_p_ar" when it is negative.
Files:      src/fileio.c


*** ../vim-8.1.1373/src/fileio.c        2019-05-18 18:52:01.040972255 +0200
--- src/fileio.c        2019-05-24 11:40:14.036978598 +0200
***************
*** 6776,6782 ****
        {
            // When 'autoread' is set we'll check the file again to see if it
            // re-appears.
!           buf->b_mtime = buf->b_p_ar;
            buf->b_orig_size = 0;
            buf->b_orig_mode = 0;
        }
--- 6776,6782 ----
        {
            // When 'autoread' is set we'll check the file again to see if it
            // re-appears.
!           buf->b_mtime = (buf->b_p_ar >= 0 ? buf->b_p_ar : p_ar);
            buf->b_orig_size = 0;
            buf->b_orig_mode = 0;
        }
*** ../vim-8.1.1373/src/version.c       2019-05-23 23:27:29.781416583 +0200
--- src/version.c       2019-05-24 11:45:07.175648661 +0200
***************
*** 769,770 ****
--- 769,772 ----
  {   /* Add new patch number below this line */
+ /**/
+     1374,
  /**/

-- 
If they don't keep on exercising their lips, he thought, their brains
start working.
                -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.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

--- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201905240945.x4O9jjPw024668%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui