Merge branch 'pipe-scrollback-secondary-screen' of https://github.com/maximbaz/kitty

This commit is contained in:
Kovid Goyal 2018-10-01 06:47:34 +05:30
commit b8d1491b99
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -438,7 +438,7 @@ class Window:
def as_text(self, as_ansi=False, add_history=False, add_pager_history=False, add_wrap_markers=False, alternate_screen=False):
lines = []
add_history = add_history and not self.screen.is_using_alternate_linebuf() and not alternate_screen
add_history = add_history and not (self.screen.is_using_alternate_linebuf() ^ alternate_screen)
if alternate_screen:
f = self.screen.as_text_alternate
else: