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
// although the line is put into splice, curLine is not increased, because
922
925
// there may be more chars in the line (newline is not reached)
923
-
constsline=putCurLineInSplice();
924
-
if(!curSplice[sline]){
925
-
console.error('curSplice[sline] not populated, actual curSplice contents is ',curSplice,'. Possibly related to https://github.com/ether/etherpad-lite/issues/2802');
926
+
if(!hasMore()){
927
+
// we are inserting at the end of lines. curCol is 0 or else curLine would be in splice
928
+
curSplice.push(text);
929
+
curCol+=text.length;
930
+
}else{
931
+
constsline=putCurLineInSplice();
932
+
if(!curSplice[sline]){
933
+
// TODO should never happen now
934
+
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