From 360cc8e6de8802015b3a4a744289c311beb8d82d Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 26 Nov 2020 18:08:28 +0100 Subject: term: remove read-only properties copied from the config Use the config directly instead. --- osc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'osc.c') diff --git a/osc.c b/osc.c index bf0fff7e..f89becfd 100644 --- a/osc.c +++ b/osc.c @@ -8,6 +8,7 @@ #define LOG_ENABLE_DBG 0 #include "log.h" #include "base64.h" +#include "config.h" #include "grid.h" #include "render.h" #include "selection.h" @@ -663,8 +664,8 @@ osc_dispatch(struct terminal *term) case 112: LOG_DBG("resetting cursor color"); - term->cursor_color.text = term->default_cursor_color.text; - term->cursor_color.cursor = term->default_cursor_color.cursor; + term->cursor_color.text = term->conf->cursor.color.text; + term->cursor_color.cursor = term->conf->cursor.color.cursor; term_damage_cursor(term); break; -- cgit v1.3