(ctx)
| 767 | // in the default key map. See TODO at bottom of function. |
| 768 | noremap: function(lhs, rhs, ctx) { |
| 769 | function toCtxArray(ctx) { |
| 770 | return ctx ? [ctx] : ['normal', 'insert', 'visual']; |
| 771 | } |
| 772 | var ctxsToMap = toCtxArray(ctx); |
| 773 | // Look through all actual defaults to find a map candidate. |
| 774 | var actualLength = defaultKeymap.length, origLength = defaultKeymapLength; |