aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-11-06 19:12:15 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-11-06 19:12:15 +0000
commit2281ee852a56cce49c97d8169b700c849dd6d6df (patch)
treedb3afdbb866bcbd128b3ed12066d387d6de3c260
parentconfig: add support for pipe-* actions in mouse bindings (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/selection.c b/selection.c
index a0dfaa02..5b3f06ea 100644
--- a/selection.c
+++ b/selection.c
@@ -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 */