()
| 3129 | // this adds a zero-width space so that we can later check whether |
| 3130 | // it got selected. |
| 3131 | function prepareSelectAllHack() { |
| 3132 | if (display.input.selectionStart != null) { |
| 3133 | var extval = display.input.value = "\u200b" + (cm.somethingSelected() ? display.input.value : ""); |
| 3134 | display.prevInput = "\u200b"; |
| 3135 | display.input.selectionStart = 1; display.input.selectionEnd = extval.length; |
| 3136 | } |
| 3137 | } |
| 3138 | function rehide() { |
| 3139 | display.inputDiv.style.position = "relative"; |
| 3140 | display.input.style.cssText = oldCSS; |
no outgoing calls
no test coverage detected