fix selection outside view crashes

This commit is contained in:
Piotr Kocia 2025-06-14 02:01:25 +02:00
parent 5fc55b8fbd
commit 94d773a262

View file

@ -2498,7 +2498,11 @@ term_damage_cell(struct terminal* const term, int const row, int const col)
void
term_damage_cell_in_view(struct terminal* const term, int const row, int const col)
{
if(col >= term->grid->num_cols || col < 0) {
if(col >= term->cols || col < 0) {
return;
}
if(row >= term->rows || row < 0) {
return;
}