From 782da0f8e91d9149ff5388be0d207573bb2486a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 3 Jan 2020 19:27:57 +0100 Subject: [PATCH] term: no need to call render_refresh() when starting/stopping blink timer --- terminal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/terminal.c b/terminal.c index 88a4374a..15da6bc3 100644 --- a/terminal.c +++ b/terminal.c @@ -1241,7 +1241,6 @@ term_cursor_blink_enable(struct terminal *term) term->cursor_blink.state = CURSOR_BLINK_ON; term->cursor_blink.active = term->wl->kbd_focus == term ? cursor_blink_start_timer(term) : true; - cursor_refresh(term); } void @@ -1250,7 +1249,6 @@ term_cursor_blink_disable(struct terminal *term) term->cursor_blink.active = false; term->cursor_blink.state = CURSOR_BLINK_ON; cursor_blink_stop_timer(term); - //cursor_refresh(term); /* TODO: causes excessive flicker in Emacs */ } void @@ -1405,6 +1403,7 @@ term_visual_focus_in(struct terminal *term) term->visual_focus = true; if (term->cursor_blink.active) cursor_blink_start_timer(term); + cursor_refresh(term); }