about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-07 15:03:37 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-07 15:03:37 +0100
commiteb61a176754a565a5c53562993897388fa2d260c (patch)
tree7c35d5415d71ec92092bc99efa7d00f4cfdaadc3 /src/config
parent38838a5fc3a3ba52982dc005013a7cca80f8c927 (diff)
downloadchawan-eb61a176754a565a5c53562993897388fa2d260c.tar.gz
Add force-clear
Diffstat (limited to 'src/config')
-rw-r--r--src/config/config.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config/config.nim b/src/config/config.nim
index 4db66283..941f8c54 100644
--- a/src/config/config.nim
+++ b/src/config/config.nim
@@ -42,6 +42,7 @@ type
     editor*: string
     tmpdir*: string
     siteconf: seq[StaticSiteConfig]
+    forceclear*: bool
 
   BufferConfig* = object
     userstyle*: string
@@ -207,6 +208,7 @@ proc parseConfig(config: Config, dir: string, t: TomlValue) =
             config.mincontrast = float(v.i)
           else:
             config.mincontrast = float(v.f)
+        of "force-clear": config.forceclear = v.b
     of "external":
       for k, v in v:
         case k