mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 03:22:26 +01:00
Fix :{count}buffer [arg].
--HG-- extra : rebase_source : 6effe71a819b511b28b127ec570a2859fe54506e
This commit is contained in:
@@ -798,7 +798,12 @@ var Tabs = Module("tabs", {
|
||||
if (config.has("tabbrowser")) {
|
||||
commands.add(["b[uffer]"],
|
||||
"Switch to a buffer",
|
||||
function (args) { tabs.switchTo(args[0], args.bang, args.count); }, {
|
||||
function (args) {
|
||||
if (args.length)
|
||||
tabs.switchTo(args[0], args.bang, args.count);
|
||||
else if (args.count)
|
||||
tabs.switchTo(String(args.count));
|
||||
}, {
|
||||
argCount: "?",
|
||||
bang: true,
|
||||
count: true,
|
||||
|
||||
Reference in New Issue
Block a user