mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-28 01:40:17 -05: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
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue