diff --git a/main.js b/main.js
index 2e1ce8b..e545e49 100644
--- a/main.js
+++ b/main.js
@@ -2097,11 +2097,13 @@ function applycolorsonline(line, index, options)
if (slashpos > spacepos)
{
var snippetpart = raw.substring(slashpos);
- var snippet = snippets.find(s => s.command.startsWith(snippetpart));
- if (snippet)
- {
- line += "" + snippet.command.substr(pos - slashpos) + "";
- }
+ var matching = snippets
+ .filter(s => s.command.startsWith(snippetpart))
+ .map(s => s.command.substring(1));
+
+ line += "";
+ line += matching.join().substr(pos - slashpos - 1);
+ line += "";
}
}
}