diff options
author | Doug Kearns <dougkearns@gmail.com> | 2013-10-07 15:10:08 +1100 |
---|---|---|
committer | Doug Kearns <dougkearns@gmail.com> | 2013-10-07 15:10:08 +1100 |
commit | 8bbcbbd4a4bd275641c3a97b37a5525c42c4582d (patch) | |
tree | 89d52a83e4b9bc4fe10a4cd475d2d1130e9be2c4 | |
parent | 4872666ef5c82f995c14fe5569a11a611b60c86a (diff) | |
download | pentadactyl-8bbcbbd4a4bd275641c3a97b37a5525c42c4582d.tar.gz |
Fix countless d/D mappings.
Fixes issue #1068.
-rw-r--r-- | common/content/tabs.js | 4 |
1 files 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"], |