1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 07:44:10 +01:00

Bump maxVersion.

This commit is contained in:
Kris Maglione
2013-06-28 01:32:04 -07:00
parent a2ba3f56b7
commit 003b76eb2c
2 changed files with 6 additions and 5 deletions

View File

@@ -755,8 +755,8 @@ var Buffer = Module("Buffer", {
* vertical percentages. See {@link Buffer.scrollToPercent} for
* parameters.
*/
scrollToPercent: function scrollToPercent(horizontal, vertical)
Buffer.scrollToPercent(this.findScrollable(0, vertical == null), horizontal, vertical),
scrollToPercent: function scrollToPercent(horizontal, vertical, dir)
Buffer.scrollToPercent(this.findScrollable(dir || 0, vertical == null), horizontal, vertical),
/**
* Scrolls the currently active element to the given horizontal and
@@ -2078,7 +2078,8 @@ var Buffer = Module("Buffer", {
mappings.add([modes.NORMAL], ["gg", "<Home>", "<scroll-top>"],
"Go to the top of the document",
function (args) { buffer.scrollToPercent(null, args.count != null ? args.count : 0); },
function (args) { buffer.scrollToPercent(null, args.count != null ? args.count : 0,
args.count != null ? 0 : -1); },
{ count: true });
mappings.add([modes.NORMAL], ["G", "<End>", "<scroll-bottom>"],
@@ -2093,7 +2094,7 @@ var Buffer = Module("Buffer", {
else if (args.count)
buffer.scrollToPosition(null, args.count);
else
buffer.scrollToPercent(null, 100);
buffer.scrollToPercent(null, 100, 1);
},
{ count: true });

View File

@@ -32,7 +32,7 @@
<Description
em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
em:minVersion="8.0"
em:maxVersion="22.0a1"/>
em:maxVersion="24.*"/>
</em:targetApplication>
</Description>
</RDF>