summaryrefslogtreecommitdiff
path: root/xedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'xedit.c')
-rw-r--r--xedit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xedit.c b/xedit.c
index 7917d23..0b49226 100644
--- a/xedit.c
+++ b/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;