File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 88 shortcutToConfigValue =
99 group : _action : skey :
1010 let
11- # Keys are expected to be a list:
1211 keys =
1312 if ! builtins . isList skey then
1413 [ skey ]
1514 else if builtins . length skey == 0 then
1615 [ "none" ]
1716 else
1817 skey ;
19-
20- # Don't allow un-escaped commas:
21- escape = lib . escape [ "," ] ;
22- keysStr = builtins . concatStringsSep "\t " ( map escape keys ) ;
18+ mkKeysString = lib . concatStringsSep "\t " ;
2319 in
2420
2521 # If the shortcut is not in the "services" group, we have to sanitize it.
2622 if lib . hasPrefix "services/" group then
27- keysStr
23+ mkKeysString keys
2824 else
2925 lib . concatStringsSep "," [
30- keysStr
26+ ( mkKeysString ( map ( lib . escape [ "," ] ) keys ) )
3127 "" # List of default keys, not needed.
3228 "" # Display string, not needed.
3329 ] ;
You can’t perform that action at this time.
0 commit comments