From 8bbcbbd4a4bd275641c3a97b37a5525c42c4582d Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Mon, 7 Oct 2013 15:10:08 +1100 Subject: [PATCH] Fix countless d/D mappings. Fixes issue #1068. --- common/content/tabs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/content/tabs.js b/common/content/tabs.js index 3d33972c..a7f038e3 100644 --- a/common/content/tabs.js +++ b/common/content/tabs.js @@ -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"],