From eddee67130ad8a8e40c79aa810538b5fd109e33f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 27 Mar 2018 09:54:14 +0530 Subject: [PATCH] Fix error when testing update_selection because not boss is defined --- kitty/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/screen.c b/kitty/screen.c index 9c55fb263..dc5a7415c 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -1772,7 +1772,7 @@ screen_update_selection(Screen *self, index_type x, index_type y, bool ended) { break; } if (found) self->selection.end_x = end; - call_boss(set_primary_selection, NULL); + if (global_state.boss) call_boss(set_primary_selection, NULL); } static PyObject*