diff options
author | bptato <nincsnevem662@gmail.com> | 2025-01-13 17:57:03 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2025-01-13 17:57:03 +0100 |
commit | f93110919241b3ed9fcf5dcffc5d308e58469360 (patch) | |
tree | 05b0b5fc9732400872757a840d8437acc306b6c3 /src/main.nim | |
parent | 37aecf03da331ffb5521e990f928ec14a9055192 (diff) | |
download | chawan-f93110919241b3ed9fcf5dcffc5d308e58469360.tar.gz |
config: switch to camel case
We already need a camel -> kebab converter anyway. Unfortunately this also changes JS binding names, so it's a breaking change. Oh well.
Diffstat (limited to 'src/main.nim')
-rw-r--r-- | src/main.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.nim b/src/main.nim index 7a1f73f7..ff90568e 100644 --- a/src/main.nim +++ b/src/main.nim @@ -231,7 +231,7 @@ proc initConfig(ctx: ParamParseContext; config: Config; ?config.parseConfig(getCurrentDir(), opt, warnings, laxnames = true) config.css.stylesheet &= ctx.stylesheet ?config.initCommands() - isCJKAmbiguous = config.display.double_width_ambiguous + isCJKAmbiguous = config.display.doubleWidthAmbiguous return ok() const libexecPath {.strdefine.} = "$CHA_BIN_DIR/../libexec/chawan" @@ -258,7 +258,7 @@ proc main() = var history = true if ctx.pages.len == 0 and stdin.isatty(): if ctx.visual: - ctx.pages.add(config.start.visual_home) + ctx.pages.add(config.start.visualHome) history = false elif (let httpHome = getEnv("HTTP_HOME"); httpHome != ""): ctx.pages.add(httpHome) |