We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5712e4a commit fda022dCopy full SHA for fda022d
src/static/js/Changeset.js
@@ -973,8 +973,9 @@ class TextLinesMutator {
973
this._curLine += newLines.length;
974
// insert the remaining chars from the "old" line (e.g. the line we were in
975
// when we started to insert new lines)
976
- this._curSplice.push(theLine.substring(lineCol));
977
- this._curCol = 0; // TODO(doc) why is this not set to the length of last line?
+ const remaining = theLine.substring(lineCol);
+ if (remaining !== '') this._curSplice.push(remaining);
978
+ this._curCol = 0;
979
} else {
980
this._curSplice.push(...newLines);
981
0 commit comments