GUACAMOLE-573: Update selected region when terminal scrolls.

This commit is contained in:
Michael Jumper 2018-06-16 23:09:43 -07:00
parent 6f08ef2a07
commit 1756c01522

View File

@ -1023,6 +1023,12 @@ int guac_terminal_scroll_up(guac_terminal* term,
term->visible_cursor_row <= end_row) term->visible_cursor_row <= end_row)
term->visible_cursor_row -= amount; term->visible_cursor_row -= amount;
/* Update selected region */
if (term->text_selected) {
term->selection_start_row -= amount;
term->selection_end_row -= amount;
}
} }
/* Otherwise, just copy row data upwards */ /* Otherwise, just copy row data upwards */