Fix colors in scrollback pager off if the window has redefined terminal colors using escape codes

Fixes #2381
This commit is contained in:
Kovid Goyal 2020-02-25 10:46:51 +05:30
parent 6e87929603
commit 2d870fc84a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 6 additions and 2 deletions

View File

@ -55,6 +55,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- Fix a regression in the previous release that broke switching to neighboring windows
in the Grid layout when there are less than four windows (:iss:`2377`)
- Fix colors in scrollback pager off if the window has redefined terminal
colors using escape codes (:iss:`2381`)
0.16.0 [2020-01-28]
--------------------

View File

@ -671,8 +671,9 @@ class Boss:
tab = self.active_tab
if tab is not None and window.overlay_for is None:
tab.new_special_window(
SpecialWindow(
cmd, data, _('History'), overlay_for=window.id))
SpecialWindow(cmd, data, _('History'), overlay_for=window.id),
copy_colors_from=self.active_window
)
def edit_config_file(self, *a):
confpath = prepare_config_file_for_editing()