diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-09-01 16:09:18 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-10-05 12:25:48 +0200 |
commit | 711d5dea20679298192b25a5bbfe4fd70d9012d6 (patch) | |
tree | 5658afd871b31d0fbc3a61d2395cde782ba96a99 /src/calcurse.c | |
parent | 8d71923d4f498c8d2fcb22a72346e3e77a7c4a5b (diff) | |
download | calcurse-711d5dea20679298192b25a5bbfe4fd70d9012d6.zip |
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 <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.c')
-rw-r--r-- | src/calcurse.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |