commit cff5746bc19a13df45109c75218bf3b16253691a
parent cfb03d6b8c82279d8fd2a64959e782c3b589b3ff
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Tue,  3 May 2016 20:39:08 +0200
Always run the code after a re-open (even if no changes).
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/myadm.c b/myadm.c
@@ -667,8 +667,8 @@ ui_sql_edit_exec(char *sql) {
 	}
 	close(fd);
 
+	stat(tmpf, &sb);
 	while(1) {
-		stat(tmpf, &sb);
 		editfile(tmpf);
 		stat(tmpf, &sa);
 		if(!sa.st_size || sb.st_mtime == sa.st_mtime) {