From e6737034e59f323d47236c43d44bd7a174c0a604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 13 Oct 2020 19:28:56 +0200 Subject: [PATCH] term: reset: enable/disable cursor blink depending on user configuration --- terminal.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/terminal.c b/terminal.c index e8bda62e..c82ca4fc 100644 --- a/terminal.c +++ b/terminal.c @@ -1481,7 +1481,10 @@ term_reset(struct terminal *term, bool hard) term->alt.cursor = (struct cursor){.point = {0, 0}}; term->alt.saved_cursor = (struct cursor){.point = {0, 0}}; term->cursor_style = term->default_cursor_style; - term_cursor_blink_disable(term); + if (term->conf->cursor.blink) + term_cursor_blink_enable(term); + else + term_cursor_blink_disable(term); term->cursor_color.text = term->default_cursor_color.text; term->cursor_color.cursor = term->default_cursor_color.cursor; selection_cancel(term);