diff --git a/src/org/rascalmpl/library/analysis/diff/edits/TextEdits.rsc b/src/org/rascalmpl/library/analysis/diff/edits/TextEdits.rsc index 4a522a179e1..97c785e7494 100644 --- a/src/org/rascalmpl/library/analysis/diff/edits/TextEdits.rsc +++ b/src/org/rascalmpl/library/analysis/diff/edits/TextEdits.rsc @@ -60,7 +60,7 @@ TextEdit insertBefore(loc range, str insertion, str separator=" ") @synopsis{Inserting after a given range.} TextEdit insertAfter(loc range, str insertion, str separator=" ") - = range.begin? + = range.end? ? replace(range.top(range.offset + range.length, 0, range.end, range.end), ""); : replace(range.top(range.offset + range.length, 0), "");