Merge branch 'master' into scrollback-position-indicator

This commit is contained in:
Daniel Eklöf 2020-07-27 16:51:39 +02:00
commit 5c20069588
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 32 additions and 13 deletions

View file

@ -1187,7 +1187,7 @@ wl_pointer_motion(void *data, struct wl_pointer *wl_pointer,
if (seat->mouse.col < 0 || seat->mouse.row < 0)
break;
bool update_selection = seat->mouse.button == BTN_LEFT;
bool update_selection = seat->mouse.button == BTN_LEFT || seat->mouse.button == BTN_RIGHT;
bool update_selection_early = term->selection.end.row == -1;
if (update_selection && update_selection_early)