aboutsummaryrefslogtreecommitdiff
path: root/editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'editor.c')
-rw-r--r--editor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor.c b/editor.c
index 87072a3..ad9bd4e 100644
--- a/editor.c
+++ b/editor.c
@@ -293,6 +293,7 @@ static File *file_new_text(Editor *ed, Text *text) {
if (!file)
return NULL;
file->text = text;
+ file->stat = text_stat(text);
file->refcount++;
if (ed->files)
ed->files->prev = file;