openurlonclick: fix for edge case that can cause a crash
This commit is contained in:
parent
b12cd70e8b
commit
2eca262969
|
@ -45,7 +45,7 @@ findeowl(int row)
|
||||||
void
|
void
|
||||||
clearurl(void)
|
clearurl(void)
|
||||||
{
|
{
|
||||||
while (url_y1 <= url_y2)
|
while (url_y1 <= url_y2 && url_y1 < term.row)
|
||||||
term.dirty[url_y1++] = 1;
|
term.dirty[url_y1++] = 1;
|
||||||
url_y2 = -1;
|
url_y2 = -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue