working going to end of the line and beginning of first

This commit is contained in:
John McLear 2020-12-28 14:12:24 +00:00
parent 92450e071d
commit 0b9962c6c6
2 changed files with 25 additions and 14 deletions

View file

@ -365,7 +365,8 @@ Scroll.prototype.getVisibleLineRange = function (rep) {
Scroll.prototype.getVisibleCharRange = function (rep) {
const lineRange = this.getVisibleLineRange(rep);
// top.console.log(rep.lines);
// top.console.log('char range', 0, rep.lines.offsetOfIndex(lineRange[0]));
// top.console.log('char range', 1, rep.lines.offsetOfIndex(lineRange[1]));
return [rep.lines.offsetOfIndex(lineRange[0]), rep.lines.offsetOfIndex(lineRange[1])];
};