diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-11-20 15:21:49 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-11-20 15:21:49 +0100 |
| commit | 697bc0ebc8178488cdb837b584b47d965b421b48 (patch) | |
| tree | 7f9d6f287bf69bd94e434c93aadbfabc1772ca2f /buffer.h | |
| parent | 9bf0e704d094bfa9c82ddb45aa7797014832469e (diff) | |
| download | vis-697bc0ebc8178488cdb837b584b47d965b421b48.tar.gz vis-697bc0ebc8178488cdb837b584b47d965b421b48.tar.xz | |
text: get modification time after replacing file content in place
At the start of text_save_range we stat(2) the file to check whether
we have currently mmap(2)-ed it. Then we proceed to write the new
file content which changes modification time. Hence we have to
stat(2) again to retrieve it.
This should fix spurious warnings about file changes outside the
editor when editing e.g. symlinked files.
Diffstat (limited to 'buffer.h')
0 files changed, 0 insertions, 0 deletions
