From de262d3a7e9ff6d57b8dd858313d2c35d15d68ee Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Sat, 6 Mar 2021 13:54:09 -0800
Subject: [PATCH] Clear screen after getting forward-to address

As pointed out by Keyop via irc, if the message has an attachment,
a comment is prompted for and since the "To:" prompt uses P_NOCRLF,
the first comment prompt was on the same line. So clear the screen, which
is what happens when the forwarded message has no attachment anyway.
---
 exec/msglist.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/exec/msglist.js b/exec/msglist.js
index 582b7c0cb8..481d297161 100644
--- a/exec/msglist.js
+++ b/exec/msglist.js
@@ -1066,6 +1066,7 @@ function list_msgs(msgbase, list, current, preview, grp_name, sub_name)
 								console.clearline();
 								var dest = prompt("To", "", K_NOCRLF);
 								if(dest) {
+									console.clear();
 									if(!bbs.forward_msg(list[current], dest))
 										alert("failed");
 								}
-- 
GitLab