We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a986145 commit f4dd9cdCopy full SHA for f4dd9cd
src/static/js/Changeset.js
@@ -882,8 +882,9 @@ const textLinesMutator = (lines) => {
882
curLine += newLines.length;
883
// insert the remaining chars from the "old" line (e.g. the line we were in
884
// when we started to insert new lines)
885
- curSplice.push(theLine.substring(lineCol));
886
- 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);
887
+ curCol = 0;
888
} else {
889
curSplice.push(...newLines);
890
0 commit comments