mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Micro-optimization
This commit is contained in:
@@ -438,7 +438,7 @@ class Window:
|
||||
if self.screen.in_bracketed_paste_mode:
|
||||
while True:
|
||||
new_text = text.replace(b'\033[201~', b'').replace(b'\x9b201~', b'')
|
||||
if text == new_text:
|
||||
if len(text) == len(new_text):
|
||||
break
|
||||
text = new_text
|
||||
self.screen.paste(text)
|
||||
|
||||
Reference in New Issue
Block a user