Commit 0336a67b authored by Philip Chimento's avatar Philip Chimento Committed by Philip Chimento

debugger: Fix bug in help command

Logic error while skipping the comment and eval commands.
parent 105a20a9
......@@ -601,7 +601,8 @@ function helpCommand() {
group.push(cmd);
} else {
// Don't print commands for debugging the debugger
if (['comment', 'eval'].includes(group[0]))
if ([commentCommand, evalCommand].includes(cmd) ||
['comment', 'eval'].includes(group[0]))
continue;
if (group.length)
printcmd(group);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment