mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-28 04:13:44 +00:00
Strip bracketed paste end sequence when pasting
This commit is contained in:
parent
204b6fa3e8
commit
3a81b186b0
1 changed files with 2 additions and 1 deletions
|
|
@ -256,7 +256,8 @@ class Window:
|
|||
if isinstance(text, str):
|
||||
text = text.encode('utf-8')
|
||||
if self.screen.in_bracketed_paste_mode:
|
||||
text = BRACKETED_PASTE_START.encode('ascii') + text + BRACKETED_PASTE_END.encode('ascii')
|
||||
bpe = BRACKETED_PASTE_END.encode('ascii')
|
||||
text = BRACKETED_PASTE_START.encode('ascii') + text.replace(bpe, b'') + bpe
|
||||
self.write_to_child(text)
|
||||
|
||||
def copy_to_clipboard(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue