From 442e10dd2801b05ba90bccbe21162af048329a1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 6 Nov 2020 20:12:15 +0100 Subject: [PATCH] selection: fix enum type enum selection_scroll_direction is used when extending a selection by auto-scrolling the terminal content while the mouse is outside the grid. What we want is enum selection_direction. --- selection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selection.c b/selection.c index 17d47cfe..6ac9042e 100644 --- a/selection.c +++ b/selection.c @@ -475,7 +475,7 @@ selection_extend_normal(struct terminal *term, int col, int row, uint32_t serial assert(start->row < end->row || start->col < end->col); struct coord new_start, new_end; - enum selection_scroll_direction direction; + enum selection_direction direction; if (row < start->row || (row == start->row && col < start->col)) { /* Extend selection to start *before* current start */