summaryrefslogtreecommitdiffstats
path: root/src/day.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/day.c')
-rw-r--r--src/day.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/day.c b/src/day.c
index 1bcbaef..0ad9438 100644
--- a/src/day.c
+++ b/src/day.c
@@ -1048,7 +1048,7 @@ day_edit_note (char *editor)
(void)snprintf (fullname, BUFSIZ, "%s%s", path_notes, p->note);
wins_launch_external (fullname, editor);
- if (io_file_is_empty (fullname))
+ if (io_file_is_empty (fullname) > 0)
erase_note (&p->note, ERASE_FORCE);
date = calendar_get_slctd_day_sec ();