1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 07:32:27 +01:00

Fix countless d/D mappings.

Fixes issue #1068.
This commit is contained in:
Doug Kearns
2013-10-07 15:10:08 +11:00
parent 4872666ef5
commit 8bbcbbd4a4

View File

@@ -1173,12 +1173,12 @@ var Tabs = Module("tabs", {
mappings.add([modes.NORMAL], ["d"],
"Delete current buffer",
function ({ count }) { tabs.remove(tabs.getTab(), count, false); },
function ({ count }) { tabs.remove(tabs.getTab(), count || 1, false); },
{ count: true });
mappings.add([modes.NORMAL], ["D"],
"Delete current buffer, focus tab to the left",
function ({ count }) { tabs.remove(tabs.getTab(), count, true); },
function ({ count }) { tabs.remove(tabs.getTab(), count || 1, true); },
{ count: true });
mappings.add([modes.NORMAL], ["gb"],