summaryrefslogtreecommitdiffstats
path: root/src/todo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/todo.c')
-rw-r--r--src/todo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/todo.c b/src/todo.c
index 4076510..125b128 100644
--- a/src/todo.c
+++ b/src/todo.c
@@ -503,6 +503,9 @@ todo_edit_note (char *editor)
}
(void)snprintf (fullname, BUFSIZ, "%s%s", path_notes, i->note);
wins_launch_external (fullname, editor);
+
+ if (io_file_is_empty (fullname))
+ erase_note (&i->note, ERASE_FORCE);
}
/* View a note previously attached to a todo */