From ec6e617029885b4e1ebd7a0ee8223f0cd1254fcc Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on Debian Linux)" <rob@synchro.net>
Date: Sat, 2 Mar 2024 18:39:12 -0800
Subject: [PATCH] Don't try to center on terminals < 80 columns wide

---
 exec/xtrn_sec.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/exec/xtrn_sec.js b/exec/xtrn_sec.js
index 18d17501ed..1b54ca9b82 100644
--- a/exec/xtrn_sec.js
+++ b/exec/xtrn_sec.js
@@ -47,8 +47,10 @@ if(options.singlecolumn_margin == undefined)
 if(options.singlecolumn_height == undefined)
 	options.singlecolumn_height = console.screen_rows - options.singlecolumn_margin;
 
-if(console.screen_columns < 80)
+if(console.screen_columns < 80) {
 	options.multicolumn = false;
+	options.center = false;
+}
 
 if(options.restricted_user_msg === undefined)
 	options.restricted_user_msg = bbs.text(R_ExternalPrograms);
-- 
GitLab