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.
This commit is contained in:
Daniel Eklöf 2020-11-06 20:12:15 +01:00
parent 9ce79e2ef0
commit 2281ee852a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -485,7 +485,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 */