aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-11-26 17:08:28 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-11-26 17:08:28 +0000
commit360cc8e6de8802015b3a4a744289c311beb8d82d (patch)
tree330f068d1dbb4946f2a43af33da1af1446c0d84a /csi.c
parentchangelog: update contributor list (diff)
term: remove read-only properties copied from the config
Use the config directly instead.
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/csi.c b/csi.c
index 80f2bfd0..8ca7d2e6 100644
--- a/csi.c
+++ b/csi.c
@@ -15,6 +15,7 @@
#define LOG_MODULE "csi"
#define LOG_ENABLE_DBG 0
#include "log.h"
+#include "config.h"
#include "grid.h"
#include "selection.h"
#include "sixel.h"
@@ -1513,11 +1514,11 @@ csi_dispatch(struct terminal *term, uint8_t final)
int param = vt_param_get(term, 0, 0);
switch (param) {
case 0: /* blinking block, but we use it to reset to configured default */
- term->cursor_style = term->default_cursor_style;
if (term->default_cursor_blink)
term_cursor_blink_enable(term);
else
term_cursor_blink_disable(term);
+ term->cursor_style = term->conf->cursor.style;
break;
case 1: /* blinking block */