openurlonclick: fix for edge case that can cause a crash

This commit is contained in:
Bakkeby 2022-08-11 09:13:29 +02:00
parent b12cd70e8b
commit 2eca262969

View File

@ -45,7 +45,7 @@ findeowl(int row)
void
clearurl(void)
{
while (url_y1 <= url_y2)
while (url_y1 <= url_y2 && url_y1 < term.row)
term.dirty[url_y1++] = 1;
url_y2 = -1;
}