(ch)
| 6831 | var mv = function (pos, dir) { return moveCharLogically(line, pos instanceof Pos ? pos.ch : pos, dir); }; |
| 6832 | var prep; |
| 6833 | var getWrappedLineExtent = function (ch) { |
| 6834 | if (!cm.options.lineWrapping) { return {begin: 0, end: line.text.length} } |
| 6835 | prep = prep || prepareMeasureForLine(cm, line); |
| 6836 | return wrappedLineExtentChar(cm, line, prep, ch) |
| 6837 | }; |
| 6838 | var wrappedLineExtent = getWrappedLineExtent(start.sticky == "before" ? mv(start, -1) : start.ch); |
| 6839 | |
| 6840 | if (cm.doc.direction == "rtl" || part.level == 1) { |
no test coverage detected