1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 22:35:45 +01:00

Fix :viu!.

--HG--
extra : rebase_source : e9f4ea7ad0d59656167aeb2e0fca276c8375c8ee
This commit is contained in:
Kris Maglione
2010-12-03 17:30:53 -05:00
parent 349205aed1
commit 09bfc60446
4 changed files with 10 additions and 5 deletions

View File

@@ -186,7 +186,13 @@ const Mappings = Module("mappings", {
// NOTE: just normal mode for now
/** @property {Iterator(Map)} @private */
__iterator__: function () this._mappingsIterator([modes.NORMAL], this._main),
__iterator__: function () {
let mode = modes.NORMAL;
let seen = {};
for (let map in iterAll(values(this._user[mode]), values(this._main[mode])))
if (!set.add(seen, map.name))
yield map;
},
// used by :mkpentadactylrc to save mappings
/**