(cm, precise)
| 117 | // Prefixes (only crudely supported) |
| 118 | |
| 119 | function getPrefix(cm, precise) { |
| 120 | var digits = cm.state.emacsPrefix; |
| 121 | if (!digits) return precise ? null : 1; |
| 122 | clearPrefix(cm); |
| 123 | return digits == "-" ? -1 : Number(digits); |
| 124 | } |
| 125 | |
| 126 | function repeated(cmd) { |
| 127 | var f = typeof cmd == "string" ? function(cm) { cm.execCommand(cmd); } : cmd; |
no test coverage detected