Mercurial > vim
comparison src/fileio.c @ 16754:8b92f3fea477 v8.1.1379
patch 8.1.1379: filechanged test hangs
commit https://github.com/vim/vim/commit/8239c62067c8d40720560496b25a82662126f2a2
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 24 16:46:01 2019 +0200
patch 8.1.1379: filechanged test hangs
Problem: Filechanged test hangs.
Solution: Do not check 'autoread'.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 24 May 2019 17:00:05 +0200 |
parents | e2d8d83e6721 |
children | ef00b6bc186b |
comparison
equal
deleted
inserted
replaced
16753:d0d3759cbd4d | 16754:8b92f3fea477 |
---|---|
6772 | 6772 |
6773 // set b_mtime to stop further warnings (e.g., when executing | 6773 // set b_mtime to stop further warnings (e.g., when executing |
6774 // FileChangedShell autocmd) | 6774 // FileChangedShell autocmd) |
6775 if (stat_res < 0) | 6775 if (stat_res < 0) |
6776 { | 6776 { |
6777 // When 'autoread' is set we'll check the file again to see if it | 6777 // Check the file again later to see if it re-appears. |
6778 // re-appears. | 6778 buf->b_mtime = -1; |
6779 buf->b_mtime = (buf->b_p_ar >= 0 ? buf->b_p_ar : p_ar); | |
6780 buf->b_orig_size = 0; | 6779 buf->b_orig_size = 0; |
6781 buf->b_orig_mode = 0; | 6780 buf->b_orig_mode = 0; |
6782 } | 6781 } |
6783 else | 6782 else |
6784 buf_store_time(buf, &st, buf->b_ffname); | 6783 buf_store_time(buf, &st, buf->b_ffname); |