When parsing OSC 52 clipboard control codes, handle an empty control parameter

This is apparently used by tmux. See #782
This commit is contained in:
Kovid Goyal 2018-11-21 19:37:39 +05:30
parent b9e6557f72
commit 0bb08d8bdd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -395,6 +395,8 @@ class Window:
def clipboard_control(self, data):
where, text = data.partition(';')[::2]
if not where:
where = 's0'
if text == '?':
response = None
if 's' in where or 'c' in where: