1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-29 22:15:47 +01:00

Fix :map -count, macro playback, and odd quirk in :map completion.

--HG--
extra : rebase_source : 4e51ba8c43810e65244e9870521c8dbbc51b0a9d
This commit is contained in:
Kris Maglione
2010-10-22 04:44:00 -04:00
parent f78a7174e3
commit 9a3d312cb5
3 changed files with 14 additions and 4 deletions

View File

@@ -332,6 +332,9 @@ const Buffer = Module("buffer", {
Math.min.apply(Math,
buffer.allFrames().map(function (frame)
frame.document.pageIsFullyLoaded || 0)),
set loaded(val)
buffer.allFrames().forEach(function (frame)
frame.document.pageIsFullyLoaded = val),
/**
* @property {Object} The local state store for the currently selected

View File

@@ -419,10 +419,12 @@ const Mappings = Module("mappings", {
completer: function (context, args) {
if (args.length == 1)
return completion.userMapping(context, args, mapmodes);
if (args["-javascript"])
return completion.javascript(context);
if (args["-ex"])
return completion.ex(context);
if (args.length == 2) {
if (args["-javascript"])
return completion.javascript(context);
if (args["-ex"])
return completion.ex(context);
}
},
literal: 1,
options: [
@@ -430,6 +432,10 @@ const Mappings = Module("mappings", {
names: ["-builtin", "-b"],
description: "Execute this mapping as if there were no user-defined mappings"
},
{
names: ["-count", "-c"],
description: "Accept a count before the requisite key press"
},
{
names: ["-description", "-d"],
description: "A description of this mapping",