This commit is contained in:
Kovid Goyal 2024-04-21 19:57:48 +05:30
parent ef9d279305
commit abfd51ad0d
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -1616,6 +1616,7 @@ class Window:
replaced_c0_control_codes = sanitized != btext
if 'replace-newline' in opts.paste_actions:
sanitized = sanitized.replace(b'\n', b'\x1bE')
replaced_newlines = False
if not self.screen.in_bracketed_paste_mode:
# \n is converted to \r and \r is interpreted as the enter key
# by legacy programs that dont support the full kitty keyboard protocol,