diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-10-13 17:28:56 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-10-13 17:28:56 +0000 |
| commit | e6737034e59f323d47236c43d44bd7a174c0a604 (patch) | |
| tree | e84dd2ccd91069f3bf8e356ff0bd3906cef7a800 | |
| parent | term: reset: kill blink timer (diff) | |
term: reset: enable/disable cursor blink depending on user configuration
| -rw-r--r-- | terminal.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |
