(cm, lineNum, column)
| 12094 | return s.replace(/([.?*+$\[\]\/\\(){}|\-])/g, '\\$1'); |
| 12095 | } |
| 12096 | function extendLineToColumn(cm, lineNum, column) { |
| 12097 | var endCh = lineLength(cm, lineNum); |
| 12098 | var spaces = new Array(column-endCh+1).join(' '); |
| 12099 | cm.setCursor(Pos(lineNum, endCh)); |
| 12100 | cm.replaceRange(spaces, cm.getCursor()); |
| 12101 | } |
| 12102 | // This functions selects a rectangular block |
| 12103 | // of text with selectionEnd as any of its corner |
| 12104 | // Height of block: |
no test coverage detected