mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
stop start point going negative
This commit is contained in:
parent
27e9f91864
commit
3562672a75
1 changed files with 3 additions and 0 deletions
|
@ -3745,6 +3745,9 @@ function Ace2Inner(){
|
|||
if(rep.selEnd[0] < 0){
|
||||
rep.selEnd[0] = 0;
|
||||
}
|
||||
if(rep.selStart[0] < 0){
|
||||
rep.selStart[0] = 0;
|
||||
}
|
||||
if(rep.selEnd[0] >= linesCount){
|
||||
rep.selEnd[0] = linesCount-1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue