mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-18 10:33:32 +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")) {
|
if (config.has("tabbrowser")) {
|
||||||
commands.add(["b[uffer]"],
|
commands.add(["b[uffer]"],
|
||||||
"Switch to a buffer",
|
"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: "?",
|
argCount: "?",
|
||||||
bang: true,
|
bang: true,
|
||||||
count: true,
|
count: true,
|
||||||
|
|||||||
@@ -224,9 +224,9 @@
|
|||||||
<p>
|
<p>
|
||||||
If argument is neither a full URL nor an index but uniquely identifies a
|
If argument is neither a full URL nor an index but uniquely identifies a
|
||||||
buffer, by a partial match with the URL or title, it is selected.
|
buffer, by a partial match with the URL or title, it is selected.
|
||||||
With <oa>!</oa> the next buffer matching the argument is selected,
|
With <oa>!</oa> the next, or <oa>count</oa>th, buffer matching the
|
||||||
even if it cannot be identified uniquely. Use <k>b</k> as a
|
argument is selected, even if it cannot be identified uniquely. Use
|
||||||
shortcut to open this prompt.
|
<k>b</k> as a shortcut to open this prompt.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>If argument is <em>#</em>, the alternate buffer will be selected (see <k name="C-^"/>).</p>
|
<p>If argument is <em>#</em>, the alternate buffer will be selected (see <k name="C-^"/>).</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user