summaryrefslogtreecommitdiff
path: root/common/content/completion.js
diff options
context:
space:
mode:
Diffstat (limited to 'common/content/completion.js')
-rwxr-xr-xcommon/content/completion.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/content/completion.js b/common/content/completion.js
index 510e7922..f902669b 100755
--- a/common/content/completion.js
+++ b/common/content/completion.js
@@ -670,8 +670,10 @@ const Completion = Module("completion", {
let list = template.commandOutput(
<div highlight="Completions">
- { template.completionRow(context.title, "CompTitle") }
- { template.map(context.items, function (item) context.createRow(item), null, 100) }
+ { template.map(context.contextList.filter(function (c) c.hasItems),
+ function (context)
+ template.completionRow(context.title, "CompTitle") +
+ template.map(context.items, function (item) context.createRow(item), null, 100)) }
</div>);
commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE);
},