mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-07 01:13:32 +02:00
fix -bang user commands regression
This commit is contained in:
@@ -717,7 +717,7 @@ function Commands() //{{{
|
|||||||
{
|
{
|
||||||
let tokens = {
|
let tokens = {
|
||||||
args: this.argCount && args.string,
|
args: this.argCount && args.string,
|
||||||
bang: this.bang && bang ? "!" : "",
|
bang: this.bang && special ? "!" : "",
|
||||||
count: this.count && count
|
count: this.count && count
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -763,7 +763,7 @@ function Commands() //{{{
|
|||||||
{
|
{
|
||||||
let filter = {
|
let filter = {
|
||||||
argCount: args["-nargs"],
|
argCount: args["-nargs"],
|
||||||
bang: "-bang" in args && true,
|
bang: "-bang" in args && true, // XXX: ???
|
||||||
count: args["-count"]
|
count: args["-count"]
|
||||||
};
|
};
|
||||||
let cmds = getMatchingUserCommands(cmd, filter);
|
let cmds = getMatchingUserCommands(cmd, filter);
|
||||||
|
|||||||
Reference in New Issue
Block a user