mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
render: resize: no need to truncate selection anymore - it's being translated
This commit is contained in:
parent
7eb990c8b1
commit
761bf426dc
1 changed files with 1 additions and 7 deletions
8
render.c
8
render.c
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue