From 54a63ad8a9a3b70a69f772766a5f29d0c01e248c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Wed, 17 Mar 2021 00:35:39 -0400
Subject: [PATCH] Allow showbuf buffers to be placed up against the status
 line.

---
 src/uifc/uifc32.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/uifc/uifc32.c b/src/uifc/uifc32.c
index 56b7e98139..0267b20e91 100644
--- a/src/uifc/uifc32.c
+++ b/src/uifc/uifc32.c
@@ -2692,8 +2692,8 @@ void showbuf(int mode, int left, int top, int width, int height, char *title, ch
 	if(api->mode&UIFC_MOUSE)
 		title_len+=6;
 
-	if((unsigned)(top+height)>api->scrn_len-3)
-		height=(api->scrn_len-3)-top;
+	if((unsigned)(top+height)>=api->scrn_len)
+		height = api->scrn_len - top;
 	if(!width || (unsigned)width<title_len+6)
 		width=title_len+6;
 	if((unsigned)width>api->scrn_width)
-- 
GitLab