summaryrefslogtreecommitdiffstats
path: root/src/todo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/todo.c')
-rw-r--r--src/todo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/todo.c b/src/todo.c
index 47c5ea2..9ea066d 100644
--- a/src/todo.c
+++ b/src/todo.c
@@ -468,7 +468,7 @@ 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))
+ if (io_file_is_empty (fullname) > 0)
erase_note (&i->note, ERASE_FORCE);
}