summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-08-16 21:52:26 -0400
committerKris Maglione <maglione.k@gmail.com>2011-08-16 21:52:26 -0400
commit5144c612adcae366966f00c56102101d9f9633d9 (patch)
tree033df2733d1316c27e7d0544651fa75aa7421841
parentee06a63dbaf346dc15da49145dd5b4a4d20a40a3 (diff)
downloadpentadactyl-5144c612adcae366966f00c56102101d9f9633d9.tar.gz
Be less prudent with <C-t>.
-rw-r--r--common/content/tabs.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/content/tabs.js b/common/content/tabs.js
index d76092cf..db0e5e9c 100644
--- a/common/content/tabs.js
+++ b/common/content/tabs.js
@@ -58,7 +58,7 @@ var Tabs = Module("tabs", {
"mappings.executed": function mappings_executed() {
if (this._mappingCount && !--this._mappingCount)
- dactyl.forceTarget = this._originalTarget;
+ dactyl.forceTarget = null;
},
},
@@ -959,8 +959,7 @@ var Tabs = Module("tabs", {
mappings.add([modes.COMMAND], ["<C-t>", "<new-tab-next>"],
"Execute the next mapping in a new tab",
function ({ count }) {
- tabs._mappingCount += (count || 1) + 1;
- tabs._originalTarget = dactyl.forceTarget;
+ tabs._mappingCount = (count || 1) + 1;
dactyl.forceTarget = dactyl.NEW_TAB;
},
{ count: true });