mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 09:48:09 +02:00
Do not send history buf in alternate screen mode
This commit is contained in:
@@ -318,7 +318,7 @@ class Window:
|
||||
def as_text(self, as_ansi=False, add_history=False):
|
||||
lines = []
|
||||
self.screen.as_text(lines.append, as_ansi)
|
||||
if add_history:
|
||||
if add_history and not self.screen.is_using_alternate_linebuf():
|
||||
h = []
|
||||
self.screen.historybuf.as_text(h.append, as_ansi)
|
||||
lines = h + lines
|
||||
|
||||
Reference in New Issue
Block a user