summaryrefslogtreecommitdiff
path: root/src/vars.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-02-22 11:36:33 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-02-24 22:48:26 +0100
commit3bc9497fc84abca0493083c3c208f0d2738bed38 (patch)
tree5f50bbd93b1885298df17c1d24848547c7813aa1 /src/vars.c
parentf76e1cce404418cef74772536f2f5ac3a79b7b99 (diff)
downloadcalcurse-3bc9497fc84abca0493083c3c208f0d2738bed38.zip
Add a read-only option
We don't save any configuration nor items if this is set. This should be used with care, and hence there's no short option for this. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/vars.c')
-rw-r--r--src/vars.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vars.c b/src/vars.c
index 10c87a0..807e206 100644
--- a/src/vars.c
+++ b/src/vars.c
@@ -58,6 +58,9 @@ int foreground, background;
*/
enum ui_mode ui_mode = UI_CMDLINE;
+/* Don't save anything if this is set. */
+int read_only = 0;
+
/*
* variables to store calendar names
*/