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:
@@ -395,6 +395,8 @@ class Window:
|
|||||||
|
|
||||||
def clipboard_control(self, data):
|
def clipboard_control(self, data):
|
||||||
where, text = data.partition(';')[::2]
|
where, text = data.partition(';')[::2]
|
||||||
|
if not where:
|
||||||
|
where = 's0'
|
||||||
if text == '?':
|
if text == '?':
|
||||||
response = None
|
response = None
|
||||||
if 's' in where or 'c' in where:
|
if 's' in where or 'c' in where:
|
||||||
|
|||||||
Reference in New Issue
Block a user