mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-26 07:57:59 -04:00
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:
parent
9ce79e2ef0
commit
2281ee852a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
assert(start->row < end->row || start->col < end->col);
|
||||||
|
|
||||||
struct coord new_start, new_end;
|
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)) {
|
if (row < start->row || (row == start->row && col < start->col)) {
|
||||||
/* Extend selection to start *before* current start */
|
/* Extend selection to start *before* current start */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue