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:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user