mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-16 21:45:03 +02:00
...
This commit is contained in:
@@ -1091,7 +1091,7 @@ def docs_url(which: str = '', local_docs_root: Optional[str] = '') -> str:
|
||||
def sanitize_for_bracketed_paste(text: bytes) -> bytes:
|
||||
pat = re.compile(b'(?:(?:\033\\[)|(?:\x9b))201~')
|
||||
while True:
|
||||
new_text = pat.sub(text, b'')
|
||||
new_text = pat.sub(b'', text)
|
||||
if new_text == text:
|
||||
break
|
||||
text = new_text
|
||||
|
||||
Reference in New Issue
Block a user