From 2eca2629694bd1f4e734d30b9c027c2704e5b056 Mon Sep 17 00:00:00 2001 From: Bakkeby Date: Thu, 11 Aug 2022 09:13:29 +0200 Subject: [PATCH] openurlonclick: fix for edge case that can cause a crash --- patch/openurlonclick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch/openurlonclick.c b/patch/openurlonclick.c index 1e9a3db..8920359 100644 --- a/patch/openurlonclick.c +++ b/patch/openurlonclick.c @@ -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; }