Commit 0deb94c7 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Fix default program section selection

Hitting [Enter] is supposed to select the current/default program
section. Instead, it was quitting. This was apparently broken as
part of the xtrn_sec.js refactor a year or so ago by/with mlong.
parent 9445866c
......@@ -275,10 +275,11 @@ function external_section_menu()
}
bbs.node_sync();
xsec=console.getnum(sec_list.length);
if(xsec<=0)
var num = console.getnum(sec_list.length);
if(num < 0)
break;
xsec--;
if(num > 0)
xsec = num - 1;
external_program_menu(sec_list[xsec].index);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment