From 3b44cb42e5ccd92e7de5d8e22b950801cf10ae4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Fri, 10 Jan 2025 18:32:53 -0500 Subject: [PATCH] Fix missing unlock --- src/conio/bitmap_con.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/conio/bitmap_con.c b/src/conio/bitmap_con.c index f841823a07..bc574a888d 100644 --- a/src/conio/bitmap_con.c +++ b/src/conio/bitmap_con.c @@ -1404,8 +1404,10 @@ bitmap_movetext_screen(int x, int y, int tox, int toy, int direction, int height direction = -1; height = vstat.rows - (height + (y - toy)); // If everything was moved, there's no lines to move back - if (height <= 0) + if (height <= 0) { + pthread_mutex_unlock(&screenlock); return; + } toy = vstat.rows - (height - 1); y = toy - (height); } -- GitLab