diff options
Diffstat (limited to 'app/xedit/xedit.c')
-rw-r--r-- | app/xedit/xedit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/xedit/xedit.c b/app/xedit/xedit.c index 7917d23fe..0b49226b6 100644 --- a/app/xedit/xedit.c +++ b/app/xedit/xedit.c @@ -279,8 +279,10 @@ main(int argc, char *argv[]) flags, file_access); XtAddCallback(item->source, XtNcallback, SourceChanged, (XtPointer)item); - if (exists && file_access == WRITE_OK) + if (exists && file_access == WRITE_OK) { item->mode = st.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO); + item->mtime = st.st_mtime; + } if (!num_loaded) SwitchTextSource(item); ++num_loaded; |