aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-05-22 12:49:42 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-05-22 12:49:42 +0000
commit28d27f49bfbaa799fed8c7a97aa9d91204ac62b8 (patch)
tree6db4a63df5736a1d144b208a846dc27cdff4a1b3 /config.c
parentMerge branch 'fdm-always-check-for-signals' (diff)
parentconfig: add cursor.underline-thickness (diff)
Merge branch 'underline-cursor-thickness'
Closes #524
Diffstat (limited to 'config.c')
-rw-r--r--config.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.c b/config.c
index 7159d299..563130a7 100644
--- a/config.c
+++ b/config.c
@@ -1059,6 +1059,13 @@ parse_section_cursor(const char *key, const char *value, struct config *conf,
return false;
}
+ else if (strcmp(key, "underline-thickness") == 0) {
+ if (!str_to_pt_or_px(
+ value, &conf->cursor.underline_thickness,
+ conf, path, lineno, "cursor", "underline-thickness"))
+ return false;
+ }
+
else {
LOG_AND_NOTIFY_ERR("%s:%d: [cursor]: %s: invalid key", path, lineno, key);
return false;
@@ -2373,6 +2380,7 @@ config_load(struct config *conf, const char *conf_path,
.cursor = 0,
},
.beam_thickness = {.pt = 1.5},
+ .underline_thickness = {.pt = 0., .px = -1},
},
.mouse = {
.hide_when_typing = false,