mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 17:57:58 +01:00
Fix :dia completion.
This commit is contained in:
@@ -1642,7 +1642,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
bang: true,
|
||||
completer: function (context) {
|
||||
context.ignoreCase = true;
|
||||
return completion.dialog(context);
|
||||
completion.dialog(context);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -758,6 +758,7 @@ Class.memoize = function memoize(getter)
|
||||
this.get = function replace() let (obj = this.instance || this) (
|
||||
Class.replaceProperty(obj, key, null),
|
||||
Class.replaceProperty(obj, key, getter.call(this, key)))
|
||||
this.set = function replace(val) Class.replaceProperty(this.instance || this, val);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1246,6 +1247,9 @@ update(iter, {
|
||||
* given predicate.
|
||||
*/
|
||||
nth: function nth(iter, pred, n, self) {
|
||||
if (typeof pred === "number")
|
||||
[pred, n] = [function () true, pred]; // Hack.
|
||||
|
||||
for (let elem in iter)
|
||||
if (pred.call(self, elem) && n-- === 0)
|
||||
return elem;
|
||||
|
||||
Reference in New Issue
Block a user