diff --git a/docs/changelog.rst b/docs/changelog.rst index b736b2f47..9b480bd76 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -87,6 +87,10 @@ To update |kitty|, :doc:`follow the instructions `. - macOS: Fix specifying initial window size in cells not working correctly on Retina screens (:iss:`1444`) +- Fix a regression in version 0.13.0 that caused background colors of space + characters after private use unicode characters to not be respected + (:iss:`1455`) + 0.13.3 [2019-01-19] ------------------------------ diff --git a/kitty/fonts.c b/kitty/fonts.c index 6d8c26a48..b35ac6160 100644 --- a/kitty/fonts.c +++ b/kitty/fonts.c @@ -1042,12 +1042,11 @@ render_line(FONTS_DATA_HANDLE fg_, Line *line) { num_spaces++; // We have a private use char followed by space(s), render it as a multi-cell ligature. GPUCell *space_cell = line->gpu_cells + i + num_spaces; - // Ensure the space cell uses the foreground/background colors from the PUA cell. - // This is needed because there are stupid applications like - // powerline that use PUA+space with different foreground colors + // Ensure the space cell uses the foreground color from the PUA cell. + // This is needed because there are applications like + // Powerline that use PUA+space with different foreground colors // for the space and the PUA. See for example: https://github.com/kovidgoyal/kitty/issues/467 space_cell->fg = gpu_cell->fg; - space_cell->bg = gpu_cell->bg; space_cell->decoration_fg = gpu_cell->decoration_fg; } if (num_spaces) {