Strip bracketed paste end sequence when pasting
This commit is contained in:
parent
204b6fa3e8
commit
3a81b186b0
@ -256,7 +256,8 @@ class Window:
|
|||||||
if isinstance(text, str):
|
if isinstance(text, str):
|
||||||
text = text.encode('utf-8')
|
text = text.encode('utf-8')
|
||||||
if self.screen.in_bracketed_paste_mode:
|
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)
|
self.write_to_child(text)
|
||||||
|
|
||||||
def copy_to_clipboard(self):
|
def copy_to_clipboard(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user