aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/config.c b/config.c
index c2eaf382..d7d2c3a1 100644
--- a/config.c
+++ b/config.c
@@ -791,6 +791,19 @@ parse_section_main(const char *key, const char *value, struct config *conf,
return false;
}
+ else if (strcmp(key, "osc8-underline") == 0) {
+ if (strcmp(value, "url-mode") == 0)
+ conf->osc8_underline = OSC8_UNDERLINE_URL_MODE;
+ else if (strcmp(value, "always") == 0)
+ conf->osc8_underline = OSC8_UNDERLINE_URL_MODE;
+ else {
+ LOG_AND_NOTIFY_ERR(
+ "%s:%u: [default]: %s: invalid 'osc8-underline'; "
+ "must be one of 'url-mode', or 'always'", path, lineno, value);
+ return false;
+ }
+ }
+
else {
LOG_AND_NOTIFY_ERR("%s:%u: [default]: %s: invalid key", path, lineno, key);
return false;
@@ -2243,6 +2256,8 @@ config_load(struct config *conf, const char *conf_path,
.argv = NULL,
},
+ .osc8_underline = OSC8_UNDERLINE_ALWAYS,
+
.tweak = {
.fcft_filter = FCFT_SCALING_FILTER_LANCZOS3,
.allow_overflowing_double_width_glyphs = true,