From da0b0e4d43a6d60797180eafb005952f6c074c43 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Mon, 22 Oct 2018 06:46:05 +0000
Subject: [PATCH] Remember the light bar position when editing command shells.

---
 src/sbbs3/scfg/scfg.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/sbbs3/scfg/scfg.c b/src/sbbs3/scfg/scfg.c
index bf1303b840..1da5908d03 100644
--- a/src/sbbs3/scfg/scfg.c
+++ b/src/sbbs3/scfg/scfg.c
@@ -1072,6 +1072,7 @@ void shell_cfg()
 		j=0;
 		done=0;
 		while(!done) {
+			static int bar;
 			k=0;
 			sprintf(opt[k++],"%-27.27s%s","Name",cfg.shell[i]->name);
 			sprintf(opt[k++],"%-27.27s%s","Access Requirements"
@@ -1091,7 +1092,7 @@ void shell_cfg()
 				"Synchronet to interpret. See the example `.src` files in the `exec`\n"
 				"directory and the documentation for the Baja compiler for more details.\n"
 			;
-			switch(uifc.list(WIN_ACT|WIN_MID,0,0,60,&j,0,cfg.shell[i]->name
+			switch(uifc.list(WIN_ACT|WIN_MID,0,0,60,&j,&bar,cfg.shell[i]->name
 				,opt)) {
 				case -1:
 					done=1;
-- 
GitLab