mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-04 02:35:45 +01:00
Fix :map<cr> when there are user-defined mappings created in JavaScript.
This commit is contained in:
@@ -180,8 +180,8 @@ const Mappings = Module("mappings", {
|
|||||||
_mappingsIterator: function (modes, stack) {
|
_mappingsIterator: function (modes, stack) {
|
||||||
modes = modes.slice();
|
modes = modes.slice();
|
||||||
return (map for ([i, map] in Iterator(stack[modes.shift()].sort(function (m1, m2) String.localeCompare(m1.name, m2.name))))
|
return (map for ([i, map] in Iterator(stack[modes.shift()].sort(function (m1, m2) String.localeCompare(m1.name, m2.name))))
|
||||||
if (modes.every(function (mode) stack[mode].
|
if (map.rhs && modes.every(function (mode) stack[mode].
|
||||||
some(function (m) array.equals(m.rhs, map.rhs) && m.name == map.name))))
|
some(function (m) m.rhs && array.equals(m.rhs, map.rhs) && m.name == map.name))))
|
||||||
},
|
},
|
||||||
|
|
||||||
// NOTE: just normal mode for now
|
// NOTE: just normal mode for now
|
||||||
|
|||||||
Reference in New Issue
Block a user