mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 04:52:31 +02:00
simplify expandLeader()
This commit is contained in:
1 parent
e25f27eea3
commit
d2bc7aa20f
1 file changed
+1
-6
+1
-6
@@ -128,12 +128,7 @@ function Mappings() //{{{
|
||||
}
|
||||
}
|
||||
|
||||
function expandLeader(keyString)
|
||||
{
|
||||
var leaderRegexp = /<Leader>/i;
|
||||
var currentLeader = mappings.getMapLeader();
|
||||
return keyString.replace(leaderRegexp, currentLeader);
|
||||
}
|
||||
function expandLeader(keyString) keyString.replace(/<Leader>/i, mappings.getMapLeader())
|
||||
|
||||
function mappingsIterator(modes, stack)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user