aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-11-20 15:21:49 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-11-20 15:21:49 +0100
commit697bc0ebc8178488cdb837b584b47d965b421b48 (patch)
tree7f9d6f287bf69bd94e434c93aadbfabc1772ca2f /vis.h
parent9bf0e704d094bfa9c82ddb45aa7797014832469e (diff)
downloadvis-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 'vis.h')
0 files changed, 0 insertions, 0 deletions