(cm, precise)
| 9040 | // Prefixes (only crudely supported) |
| 9041 | |
| 9042 | function getPrefix(cm, precise) { |
| 9043 | var digits = cm.state.emacsPrefix; |
| 9044 | if (!digits) return precise ? null : 1; |
| 9045 | clearPrefix(cm); |
| 9046 | return digits == "-" ? -1 : Number(digits); |
| 9047 | } |
| 9048 | |
| 9049 | function repeated(cmd) { |
| 9050 | var f = typeof cmd == "string" ? function(cm) { cm.execCommand(cmd); } : cmd; |
no test coverage detected