aboutsummaryrefslogtreecommitdiffstats
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-04-11 15:12:50 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-04-12 12:02:23 +0200
commitb9c1969126bc772a4ec34b56cd0de9b6fc4e44f5 (patch)
treee148be2f9d6ca6fd487634b86dce77d5c069ce7c /src/calcurse.h
parent1140feaabf7bf826b52d21643885fb1bd94702ed (diff)
downloadcalcurse-b9c1969126bc772a4ec34b56cd0de9b6fc4e44f5.tar.gz
calcurse-b9c1969126bc772a4ec34b56cd0de9b6fc4e44f5.zip
Drop empty notes after editing.
Keeping empty notes doesn't make sense here. Also, there doesn't seem to be a simple way to erase notes yet. This will make calcurse delete any notes that are empty (meaning that they are either 0-byte files or contain nothing but a newline character) when returning from the editor. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/calcurse.h b/src/calcurse.h
index 4b28039..0a306f0 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -696,6 +696,7 @@ void io_stop_psave_thread (void);
void io_set_lock (void);
unsigned io_dump_pid (char *);
unsigned io_get_pid (char *);
+int io_file_is_empty (char *);
/* keys.c */
void keys_init (void);