aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-10-13 17:28:05 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-10-13 17:28:05 +0000
commit1f650a7fdf9a7aa2088a303a7af77a2d05d73dd1 (patch)
treeed5c7066487f7289abc92bdc8c2536611956b206 /terminal.c
parentterm: instantiate cursor blink timer on-demand (diff)
term: remove unneeded blink.active field
We now use the timer FD instead; if it is -1, blinking is not active.
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/terminal.c b/terminal.c
index 69325886..21cc4024 100644
--- a/terminal.c
+++ b/terminal.c
@@ -391,9 +391,7 @@ fdm_blink(struct fdm *fdm, int fd, int events, void *data)
if (no_blinking_cells) {
LOG_DBG("disarming blink timer");
- term->blink.active = false;
term->blink.state = BLINK_ON;
-
fdm_del(term->fdm, term->blink.fd);
term->blink.fd = -1;
} else
@@ -1469,7 +1467,6 @@ term_reset(struct terminal *term, bool hard)
return;
term->flash.active = false;
- term->blink.active = false;
term->blink.state = BLINK_ON;
term->colors.fg = term->colors.default_fg;
term->colors.bg = term->colors.default_bg;