stop start point going negative

This commit is contained in:
John McLear 2013-03-18 18:44:01 +00:00
parent 27e9f91864
commit 3562672a75
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}