Merge branch 'scroll-up-down-while-selecting' into master

Closes #149
This commit is contained in:
Daniel Eklöf 2020-10-12 20:20:26 +02:00
commit d75e50230e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 164 additions and 1 deletions

View file

@ -182,6 +182,7 @@ enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR };
enum selection_kind { SELECTION_NONE, SELECTION_NORMAL, SELECTION_BLOCK };
enum selection_direction {SELECTION_UNDIR, SELECTION_LEFT, SELECTION_RIGHT};
enum selection_scroll_direction {SELECTION_SCROLL_NOT, SELECTION_SCROLL_UP, SELECTION_SCROLL_DOWN};
struct ptmx_buffer {
void *data;
@ -349,6 +350,12 @@ struct terminal {
struct coord start;
struct coord end;
bool ongoing;
struct {
int fd;
int col;
enum selection_scroll_direction direction;
} auto_scroll;
} selection;
bool is_searching;