diff options
author | bptato <nincsnevem662@gmail.com> | 2022-11-25 16:38:23 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-11-25 16:38:23 +0100 |
commit | aaacdc350547dd5a5d637f9a054888792781895a (patch) | |
tree | 8a9c0edff45a37a4c31de254b03016e2bfb7fb60 /src/config | |
parent | 8607bb0c1e7653c1249c40fa573f94718b4d5727 (diff) | |
download | chawan-aaacdc350547dd5a5d637f9a054888792781895a.tar.gz |
Improve status messages, fix regressions, etc
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/bufferconfig.nim | 1 | ||||
-rw-r--r-- | src/config/config.nim | 2 | ||||
-rw-r--r-- | src/config/toml.nim | 1 |
3 files changed, 2 insertions, 2 deletions
diff --git a/src/config/bufferconfig.nim b/src/config/bufferconfig.nim index 6e8d19e6..78f3b87e 100644 --- a/src/config/bufferconfig.nim +++ b/src/config/bufferconfig.nim @@ -1,5 +1,4 @@ import config/config -import css/sheet type BufferConfig* = object userstyle*: string diff --git a/src/config/config.nim b/src/config/config.nim index c8002289..ff4f0b45 100644 --- a/src/config/config.nim +++ b/src/config/config.nim @@ -102,6 +102,8 @@ proc readUserStylesheet(dir, file: string): string = proc parseConfig(config: Config, dir: string, t: TomlValue) = for k, v in t: case k + of "startup": + config.startup = v.s of "headless": config.headless = v.b of "page": diff --git a/src/config/toml.nim b/src/config/toml.nim index 7f743f09..dd0b4fe1 100644 --- a/src/config/toml.nim +++ b/src/config/toml.nim @@ -334,7 +334,6 @@ proc consumeNumber(state: var TomlParser, c: char): TomlValue = let val = parseFloat64(repr) return TomlValue(vt: VALUE_FLOAT, f: val) - eprint repr let val = parseInt64(repr) return TomlValue(vt: VALUE_INTEGER, i: val) |