mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-15 20:49:02 +08:00
showing the command line suggestions if in sub menu
This commit is contained in:
parent
e2bb0c3908
commit
6cd1123051
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue