From efbc3431ed5f89f7a050af35d54ceb76e77e9aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 22 Aug 2020 09:23:58 +0200 Subject: [PATCH] selection: clipboard callback: assert we're in sending-paste-data mode --- selection.c | 1 + 1 file changed, 1 insertion(+) diff --git a/selection.c b/selection.c index 4788ce61..800f7451 100644 --- a/selection.c +++ b/selection.c @@ -1182,6 +1182,7 @@ static void from_clipboard_cb(const char *data, size_t size, void *user) { struct terminal *term = user; + assert(term->is_sending_paste_data); term_paste_data_to_slave(term, data, size); }