You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// insert the remaining chars from the "old" line (e.g. the line we were in
829
+
// when we started to insert new lines)
830
+
// if nothing is left we don't push an empty string
831
+
if(theLine.substring(lineCol)){
832
+
curSplice.push(theLine.substring(lineCol));
833
+
}
834
+
curCol=0;// TODO(doc) why is this not set to the length of last line?
823
835
}else{
824
836
Array.prototype.push.apply(curSplice,newLines);
825
837
curLine+=newLines.length;
826
838
}
827
839
}else{
828
-
constsline=putCurLineInSplice();
829
-
if(!curSplice[sline]){
830
-
console.error('curSplice[sline] not populated, actual curSplice contents is ',curSplice,'. Possibly related to https://github.com/ether/etherpad-lite/issues/2802');
// although the line is put into splice, curLine is not increased, because
856
+
// there may be more chars in the line (newline is not reached)
857
+
constsline=putCurLineInSplice();
858
+
if(!curSplice[sline]){
859
+
console.error('curSplice[sline] not populated, actual curSplice contents is ',curSplice,'. Possibly related to https://github.com/ether/etherpad-lite/issues/2802');
0 commit comments