We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4c6a9b commit bb99568Copy full SHA for bb99568
src/static/js/Changeset.js
@@ -915,8 +915,9 @@ exports.textLinesMutator = (lines) => {
915
curLine += newLines.length;
916
// insert the remaining chars from the "old" line (e.g. the line we were in
917
// when we started to insert new lines)
918
- curSplice.push(theLine.substring(lineCol));
919
- curCol = 0; // TODO(doc) why is this not set to the length of last line?
+ const remaining = theLine.substring(lineCol);
+ if (remaining !== '') curSplice.push(remaining);
920
+ curCol = 0;
921
} else {
922
Array.prototype.push.apply(curSplice, newLines);
923
0 commit comments