mirror of
https://github.com/tmux/tmux.git
synced 2026-10-16 16:44:30 +00:00
Redraw the client after an OSC 11 background change, GitHub issue 5752
from Ilya Pozdnyakov.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: tty-keys.c,v 1.219 2026/10/14 13:03:47 nicm Exp $ */
|
||||
/* $OpenBSD: tty-keys.c,v 1.220 2026/10/16 12:01:33 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||
@@ -1785,8 +1785,12 @@ tty_keys_colours1(struct tty *tty, const char *buf, size_t len, size_t *size,
|
||||
|
||||
n = tty_keys_colours(tty, buf, len, size, &tty->fg, &tty->bg);
|
||||
if (n == 0) {
|
||||
if (tty->bg != bg)
|
||||
if (tty->bg != bg) {
|
||||
server_client_update_theme_colours(c);
|
||||
if (tty->flags & TTY_OPENED)
|
||||
tty_invalidate(tty);
|
||||
server_redraw_client(c);
|
||||
}
|
||||
session_theme_changed(c->session);
|
||||
}
|
||||
return (n);
|
||||
|
||||
Reference in New Issue
Block a user