We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af7b5d1 commit c579c86Copy full SHA for c579c86
src/static/js/Changeset.js
@@ -924,8 +924,9 @@ exports.textLinesMutator = (lines) => {
924
curLine += newLines.length;
925
// insert the remaining chars from the "old" line (e.g. the line we were in
926
// when we started to insert new lines)
927
- curSplice.push(theLine.substring(lineCol));
928
- 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);
929
+ curCol = 0;
930
} else {
931
Array.prototype.push.apply(curSplice, newLines);
932
0 commit comments