1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 16:57:59 +01:00

Allow [count]b == :[count]b

This commit is contained in:
Kris Maglione
2008-12-14 20:28:06 -05:00
parent 3e330c3277
commit 0025d79a1d
2 changed files with 9 additions and 3 deletions

View File

@@ -249,7 +249,13 @@ function Tabs() //{{{
{
mappings.add([modes.NORMAL], ["b"],
"Open a prompt to switch buffers",
function () { commandline.open(":", "buffer! ", modes.EX); });
function (count)
{
if (count != -1)
return tabs.switchTo(String(count));
commandline.open(":", "buffer! ", modes.EX);
},
{ flags: Mappings.flags.COUNT });
mappings.add([modes.NORMAL], ["B"],
"Show buffer list",