File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -808,11 +808,12 @@ class TextLinesMutator {
808
808
* Indicates if curLine is already in the splice. This is necessary because the last element in
809
809
* curSplice is curLine when this line is currently worked on (e.g. when skipping or inserting).
810
810
*
811
- * TODO(doc) why aren't removals considered?
812
- *
813
811
* @returns {boolean } true if curLine is in splice
814
812
*/
815
813
_isCurLineInSplice ( ) {
814
+ // The value of `this._curSplice[1]` does not matter when determining the return value because
815
+ // `this._curLine` refers to the line number *after* the splice is applied (so after those lines
816
+ // are deleted).
816
817
return this . _curLine - this . _curSplice [ 0 ] < this . _curSplice . length - 2 ;
817
818
}
818
819
You can’t perform that action at this time.
0 commit comments