gh-111201: Allow bracketed paste to work (GH-118700)

This commit is contained in:
Pablo Galindo Salgado 2024-05-07 13:54:56 +01:00 committed by GitHub
parent ad3d877a12
commit 7d90b8aadb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 61 additions and 0 deletions

View file

@ -462,3 +462,13 @@ class paste_mode(Command):
def do(self) -> None:
self.reader.paste_mode = not self.reader.paste_mode
self.reader.dirty = True
class enable_bracketed_paste(Command):
def do(self) -> None:
self.reader.paste_mode = True
class disable_bracketed_paste(Command):
def do(self) -> None:
self.reader.paste_mode = False
self.reader.insert("\n")