diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-11-06 19:12:15 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-11-06 19:13:44 +0000 |
| commit | 442e10dd2801b05ba90bccbe21162af048329a1d (patch) | |
| tree | 33b0905d1b470ec1a4348d21d3c690980001a1a5 | |
| parent | selection: explicitly set direction when right-click extending (diff) | |
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.
| -rw-r--r-- | selection.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |
