From fd649bf8c381fa6d7d4394b65925faef93582f7d Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Sat, 8 May 2021 15:22:42 -0700
Subject: [PATCH] Make it a conditional *blank* line before the batch flag
 prompt

It's very tricky to defeat the auto-pause to have your own custom prompt at  rows-1. So going back to having  a blank line before the batch prompt.
---
 src/sbbs3/listfile.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/listfile.cpp b/src/sbbs3/listfile.cpp
index c5de256a2f..0a4e05d8e3 100644
--- a/src/sbbs3/listfile.cpp
+++ b/src/sbbs3/listfile.cpp
@@ -44,7 +44,7 @@ int sbbs_t::listfiles(uint dirnum, const char *filespec, FILE* tofile, long mode
 	long	anchor=0,next;
 	file_t* bf[BF_MAX];	/* bf is batch flagged files */
 	smb_t	smb;
-	ulong	file_row[26];
+	ulong	file_row[BF_MAX];
 	size_t	longest = 0;
 
 	if(!smb_init_dir(&cfg, &smb, dirnum))
@@ -472,7 +472,7 @@ int sbbs_t::batchflagprompt(smb_t* smb, file_t** bf, ulong* row, uint total
 		if(usrdir[ulib][udir]==smb->dirnum)
 			break;
 
-	cond_newline();
+	cond_blankline();
 	while(online) {
 		bprintf(text[BatchFlagPrompt]
 			,ulib+1
-- 
GitLab