From 711d5dea20679298192b25a5bbfe4fd70d9012d6 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 1 Sep 2011 16:09:18 +0200 Subject: Add configuration option to run the GC on exit If "auto_gc" is enabled, the garbage collector for note files will be run on every exit. As this is an experimental feature and may cause data loss, this is disabled by default. Signed-off-by: Lukas Fleischer --- src/calcurse.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/calcurse.c') diff --git a/src/calcurse.c b/src/calcurse.c index ab55254..7dae864 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -537,6 +537,8 @@ main (int argc, char **argv) case KEY_GENERIC_QUIT: if (conf.auto_save) io_save_cal (&conf, IO_SAVE_DISPLAY_BAR); + if (conf.auto_gc) + note_gc (); if (conf.confirm_quit) { -- cgit v1.2.3-54-g00ecf