summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŠtěpán Němec <stepnem@gmail.com>2010-12-30 09:54:11 +0100
committerŠtěpán Němec <stepnem@gmail.com>2010-12-30 09:54:11 +0100
commit751b1758c45fde8bc58b36f0d293a6b895e5197b (patch)
treee68259b8979442554368177a5ba34e495d6989eb
parent4d47da91024f64d8d3d67717543c9f7678919abc (diff)
downloadpentadactyl-751b1758c45fde8bc58b36f0d293a6b895e5197b.tar.gz
Minor fixup for 45b2508a55c9.
-rw-r--r--common/content/buffer.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/content/buffer.js b/common/content/buffer.js
index ed5670b8..98303fa5 100644
--- a/common/content/buffer.js
+++ b/common/content/buffer.js
@@ -1565,8 +1565,8 @@ var Buffer = Module("buffer", {
mappings.add(myModes, ["%"],
"Scroll to {count} percent of the document",
function (args) {
- dactyl.assert(args.count > 0 && count <= 100);
- buffer.scrollToPercent(null, count);
+ dactyl.assert(args.count > 0 && args.count <= 100);
+ buffer.scrollToPercent(null, args.count);
},
{ count: true });
@@ -1719,7 +1719,7 @@ var Buffer = Module("buffer", {
mappings.add(myModes, ["zz"],
"Set text zoom value of current web page",
- function (args) { Buffer.setZoom(args.count > 1 ? count : 100, false); },
+ function (args) { Buffer.setZoom(args.count > 1 ? args.count : 100, false); },
{ count: true });
mappings.add(myModes, ["ZI", "zI"],