(ch)
| 6887 | var mv = function (pos, dir) { return moveCharLogically(line, pos instanceof Pos ? pos.ch : pos, dir); }; |
| 6888 | var prep; |
| 6889 | var getWrappedLineExtent = function (ch) { |
| 6890 | if (!cm.options.lineWrapping) { return {begin: 0, end: line.text.length} } |
| 6891 | prep = prep || prepareMeasureForLine(cm, line); |
| 6892 | return wrappedLineExtentChar(cm, line, prep, ch) |
| 6893 | }; |
| 6894 | var wrappedLineExtent = getWrappedLineExtent(start.sticky == "before" ? mv(start, -1) : start.ch); |
| 6895 | |
| 6896 | if (cm.doc.direction == "rtl" || part.level == 1) { |
no test coverage detected