mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
Add some tests for the pagerhist code
This commit is contained in:
@@ -158,7 +158,9 @@ def as_text(
|
||||
f(lines.append, as_ansi, add_wrap_markers)
|
||||
if add_history:
|
||||
h: List[str] = []
|
||||
screen.historybuf.pagerhist_as_text(h.append)
|
||||
pht = screen.historybuf.pagerhist_as_text()
|
||||
if pht:
|
||||
h.append(pht)
|
||||
if h and (not as_ansi or not add_wrap_markers):
|
||||
sanitizer = text_sanitizer(as_ansi, add_wrap_markers)
|
||||
h = list(map(sanitizer, h))
|
||||
|
||||
Reference in New Issue
Block a user