mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
working going to end of the line and beginning of first
This commit is contained in:
parent
92450e071d
commit
0b9962c6c6
2 changed files with 25 additions and 14 deletions
|
@ -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])];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue