rewrite selection system. Closes T1893

This commit is contained in:
Boris Faure 2015-01-21 22:56:16 +01:00
parent 6a2b3ae871
commit 788f3e7eb7
2 changed files with 640 additions and 352 deletions

File diff suppressed because it is too large Load Diff

View File

@ -145,13 +145,18 @@ struct _Termpty
unsigned char on : 1;
} block;
struct {
/* start is always the start of the selection
* so end.y can be < start.y */
struct {
int x, y;
} start, end, start_backup, end_backup;
} start, end, orig;
time_t last_click;
unsigned char is_active : 1;
unsigned char is_box : 1;
unsigned char makesel : 1;
unsigned char by_word : 1;
unsigned char by_line : 1;
unsigned char is_top_to_bottom : 1;
} selection;
Termstate state, save, swap;
int exit_code;