Fix error when testing update_selection because not boss is defined

This commit is contained in:
Kovid Goyal 2018-03-27 09:54:14 +05:30
parent 9b834014e9
commit eddee67130
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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*