Merge branch 'master' of https://github.com/dcolascione/kitty
This commit is contained in:
commit
59ab22c0c8
@ -431,7 +431,11 @@ 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 = text.replace(b'\033[201~', b'').replace(b'\x9b201~', b'')
|
while True:
|
||||||
|
new_text = text.replace(b'\033[201~', b'').replace(b'\x9b201~', b'')
|
||||||
|
if text == new_text:
|
||||||
|
break
|
||||||
|
text = new_text
|
||||||
self.screen.paste(text)
|
self.screen.paste(text)
|
||||||
|
|
||||||
def copy_to_clipboard(self):
|
def copy_to_clipboard(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user