From 1de3210214281c414765bf76784687623c4ea886 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Mon, 10 Nov 2008 13:19:16 +0000 Subject: [PATCH] fix -bang user commands regression --- content/commands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/commands.js b/content/commands.js index fad5da76..04fc3ce8 100644 --- a/content/commands.js +++ b/content/commands.js @@ -717,7 +717,7 @@ function Commands() //{{{ { let tokens = { args: this.argCount && args.string, - bang: this.bang && bang ? "!" : "", + bang: this.bang && special ? "!" : "", count: this.count && count }; @@ -763,7 +763,7 @@ function Commands() //{{{ { let filter = { argCount: args["-nargs"], - bang: "-bang" in args && true, + bang: "-bang" in args && true, // XXX: ??? count: args["-count"] }; let cmds = getMatchingUserCommands(cmd, filter);