From 97e0b9b65a426a50eae823b4d2dd8919ee9b6989 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Sun, 10 Nov 2019 16:51:25 +0100 Subject: [PATCH] Simplify code --- kitty/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/screen.c b/kitty/screen.c index f866cf1b5..3b9a4620c 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -1538,7 +1538,7 @@ screen_update_cell_data(Screen *self, void *address, FONTS_DATA_HANDLE fonts_dat static inline bool is_selection_empty(Screen *self, unsigned int start_x, unsigned int start_y, unsigned int end_x, unsigned int end_y) { - return (start_x >= self->columns || start_y >= self->lines || end_x >= self->columns || end_y >= self->lines || (start_x == end_x && start_y == end_y)) ? true : false; + return start_x >= self->columns || start_y >= self->lines || end_x >= self->columns || end_y >= self->lines || (start_x == end_x && start_y == end_y); } static inline void