From 22d843e6719c025bf6d711bfdd3644e442ee8966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 6 Jul 2015 21:49:19 +0200 Subject: Warn when saving a file which has been changed outside the editor --- editor.c | 1 + 1 file changed, 1 insertion(+) (limited to 'editor.c') 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; -- cgit v1.2.3