Remove output start mark from last command output

This commit is contained in:
Kovid Goyal 2022-04-12 08:55:07 +05:30
parent f085f853bd
commit 5d76cfb578
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -381,6 +381,10 @@ def cmd_output(screen: Screen, which: CommandOutput = CommandOutput.last_run, as
pht = pagerhist(screen, as_ansi, add_wrap_markers, True)
if pht:
lines.insert(0, pht)
for i in range(min(len(lines), 3)):
x = lines[i]
if x.startswith('\x1b]133;C'):
lines[i] = x.partition('\\')[-1]
return ''.join(lines)