render: resize: no need to truncate selection anymore - it's being translated

This commit is contained in:
Daniel Eklöf 2020-04-17 22:30:56 +02:00
parent 7eb990c8b1
commit 761bf426dc
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -25,7 +25,7 @@
#define TIME_FRAME_RENDERING 0
#define TIME_SCROLL_DAMAGE 0
#define ALEN(v) (sizeof(v) / sizeof(v[0]))
#define ALEN(v) (sizeof(v) / sizeof((v)[0]))
#define min(x, y) ((x) < (y) ? (x) : (y))
#define max(x, y) ((x) > (y) ? (x) : (y))
@ -1825,12 +1825,6 @@ damage_view:
term->height / term->scale + title_height);
}
/* Make sure selection is within bounds */
term->selection.start.row = min(term->selection.start.row, term->rows - 1);
term->selection.start.col = min(term->selection.start.col, term->cols - 1);
term->selection.end.row = min(term->selection.end.row, term->rows - 1);
term->selection.end.col = min(term->selection.end.col, term->cols - 1);
tll_free(term->normal.scroll_damage);
tll_free(term->alt.scroll_damage);