mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 01:14:10 +01:00
Closes issue #400.
This commit is contained in:
@@ -1254,10 +1254,8 @@ var Commands = Module("commands", {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (complete) {
|
if (complete)
|
||||||
complete.fork(command.name);
|
var context = complete.fork(command.name).fork("opts", len);;
|
||||||
var context = complete.fork("args", len);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!complete || /(\w|^)[!\s]/.test(str))
|
if (!complete || /(\w|^)[!\s]/.test(str))
|
||||||
args = command.parseArgs(args, context, { count: count, bang: bang });
|
args = command.parseArgs(args, context, { count: count, bang: bang });
|
||||||
@@ -1382,7 +1380,7 @@ var Commands = Module("commands", {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let cmdContext = context.fork(command.name, match.fullCmd.length + match.bang.length + match.space.length);
|
let cmdContext = context.fork(command.name + "/args", match.fullCmd.length + match.bang.length + match.space.length);
|
||||||
try {
|
try {
|
||||||
if (!cmdContext.waitingForTab) {
|
if (!cmdContext.waitingForTab) {
|
||||||
if (!args.completeOpt && command.completer && args.completeStart != null) {
|
if (!args.completeOpt && command.completer && args.completeStart != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user