diff --git a/kitty/screen.c b/kitty/screen.c index 8b5012a8e..137f46623 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -2075,12 +2075,12 @@ screen_handle_cmd(Screen *self, PyObject *cmd) { void screen_push_colors(Screen *self, unsigned int idx) { - colorprofile_push_colors(self->color_profile, idx); + if (colorprofile_push_colors(self->color_profile, idx)) self->color_profile->dirty = true; } void screen_pop_colors(Screen *self, unsigned int idx) { - colorprofile_pop_colors(self->color_profile, idx); + if (colorprofile_pop_colors(self->color_profile, idx)) self->color_profile->dirty = true; } void