diff --git a/src/js/commandline.js b/src/js/commandline.js index d887336d0..21c031bc7 100644 --- a/src/js/commandline.js +++ b/src/js/commandline.js @@ -2023,14 +2023,15 @@ function updateSuggestedCommands() { function displayFoundCommands() { $("#commandLine .suggestions").empty(); + let commandsHTML = ""; let list = currentCommands[currentCommands.length - 1]; $.each(list.list, (index, obj) => { if (obj.found && (obj.available !== undefined ? obj.available() : true)) { - $("#commandLine .suggestions").append( - '
' + obj.display + "
" - ); + commandsHTML += + '
' + obj.display + "
"; } }); + $("#commandLine .suggestions").html(commandsHTML); if ($("#commandLine .suggestions .entry").length == 0) { $("#commandLine .separator").css({ height: 0, margin: 0 }); } else {