mirror of
https://github.com/tmux/tmux.git
synced 2025-04-07 00:28:48 +00:00
Do not set cursor colour to default unless it has been changed, GitHub
issue 2013.
This commit is contained in:
parent
55eb3e4773
commit
f733d3f3eb
6
tty.c
6
tty.c
@ -335,7 +335,8 @@ tty_start_tty(struct tty *tty)
|
|||||||
tty->flags |= TTY_STARTED;
|
tty->flags |= TTY_STARTED;
|
||||||
tty_invalidate(tty);
|
tty_invalidate(tty);
|
||||||
|
|
||||||
tty_force_cursor_colour(tty, "");
|
if (*tty->ccolour != '\0')
|
||||||
|
tty_force_cursor_colour(tty, "");
|
||||||
|
|
||||||
tty->mouse_drag_flag = 0;
|
tty->mouse_drag_flag = 0;
|
||||||
tty->mouse_drag_update = NULL;
|
tty->mouse_drag_update = NULL;
|
||||||
@ -381,7 +382,8 @@ tty_stop_tty(struct tty *tty)
|
|||||||
}
|
}
|
||||||
if (tty->mode & MODE_BRACKETPASTE)
|
if (tty->mode & MODE_BRACKETPASTE)
|
||||||
tty_raw(tty, "\033[?2004l");
|
tty_raw(tty, "\033[?2004l");
|
||||||
tty_raw(tty, tty_term_string(tty->term, TTYC_CR));
|
if (*tty->ccolour != '\0')
|
||||||
|
tty_raw(tty, tty_term_string(tty->term, TTYC_CR));
|
||||||
|
|
||||||
tty_raw(tty, tty_term_string(tty->term, TTYC_CNORM));
|
tty_raw(tty, tty_term_string(tty->term, TTYC_CNORM));
|
||||||
if (tty_term_has(tty->term, TTYC_KMOUS))
|
if (tty_term_has(tty->term, TTYC_KMOUS))
|
||||||
|
Loading…
Reference in New Issue
Block a user