var from = Pos(pos.line, cut); for (var ln = pos.line + 1, i = 1; i < last; ++i, ++ln) if (target[i] != fold(doc.getLine(ln))) return;
|
var from = Pos(pos.line, cut); for (var ln = pos.line + 1, i = 1; i < last; ++i, ++ln) if (target[i] != fold(doc.getLine(ln))) return;
|
if (doc.getLine(ln).slice(0, origTarget[last].length) != target[last]) return;
| if (fold(doc.getLine(ln).slice(0, origTarget[last].length)) != target[last]) return;
|
return {from: from, to: Pos(ln, origTarget[last].length)}; } };
| return {from: from, to: Pos(ln, origTarget[last].length)}; } };
|