stop start point going negative

This commit is contained in:
John McLear 2013-03-18 18:44:01 +00:00
parent 27e9f91864
commit 3562672a75

View file

@ -3745,6 +3745,9 @@ function Ace2Inner(){
if(rep.selEnd[0] < 0){ if(rep.selEnd[0] < 0){
rep.selEnd[0] = 0; rep.selEnd[0] = 0;
} }
if(rep.selStart[0] < 0){
rep.selStart[0] = 0;
}
if(rep.selEnd[0] >= linesCount){ if(rep.selEnd[0] >= linesCount){
rep.selEnd[0] = linesCount-1; rep.selEnd[0] = linesCount-1;
} }