From abfd51ad0dfb8a2a051cc348295ac989b3ef4133 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 21 Apr 2024 19:57:48 +0530 Subject: [PATCH] Fix #7376 --- kitty/window.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/window.py b/kitty/window.py index e279b4315..b6676bd44 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -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,