From 0bb08d8bdd326f3aee07db0f05682b2c962e7b50 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 21 Nov 2018 19:37:39 +0530 Subject: [PATCH] When parsing OSC 52 clipboard control codes, handle an empty control parameter This is apparently used by tmux. See #782 --- kitty/window.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitty/window.py b/kitty/window.py index 5c92fd612..9c7e4423b 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -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: