showing the command line suggestions if in sub menu

This commit is contained in:
Jack 2020-10-17 21:04:55 +01:00
parent e2bb0c3908
commit 6cd1123051

View file

@ -1735,7 +1735,7 @@ function showCommandInput(command, placeholder) {
function updateSuggestedCommands() {
let inputVal = $("#commandLine input").val().toLowerCase().split(" ").filter((s, i) => s || i == 0); //remove empty entries after first
let list = currentCommands[currentCommands.length - 1];
if (inputVal[0] === "" && config.singleListCommandLine === "on") {
if (inputVal[0] === "" && config.singleListCommandLine === "on" && currentCommands.length === 1) {
$.each(list.list, (index, obj) => {
obj.found = false;
});