mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-29 06:46:35 -04:00
fix selection outside view crashes
This commit is contained in:
parent
5fc55b8fbd
commit
94d773a262
1 changed files with 5 additions and 1 deletions
|
|
@ -2498,7 +2498,11 @@ term_damage_cell(struct terminal* const term, int const row, int const col)
|
||||||
void
|
void
|
||||||
term_damage_cell_in_view(struct terminal* const term, int const row, int const col)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue