1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 15:27:57 +01:00

Use completion.buffer for tabs.switchTo/:buffer!.

--HG--
extra : rebase_source : 91bb7fa4c4573048721f65c3aa871370300e7979
This commit is contained in:
Kris Maglione
2010-12-06 22:57:04 -05:00
parent 9c0cc5d19b
commit 175cd126b7
3 changed files with 22 additions and 42 deletions

View File

@@ -1177,7 +1177,7 @@ const Commands = Module("commands", {
return;
}
[prefix] = args.commandString.match(/^(?:\w*[\s!])?\s*/);
[, prefix] = args.commandString.match(/^[\s\d]*((?:\w*[\s!])?\s*)/);
let cmdContext = context.fork(command.name, prefix.length);
try {
if (!cmdContext.waitingForTab) {