From 7cbf0debe929888d03ce90cf6e52a851cf82a65b Mon Sep 17 00:00:00 2001 From: "Jurgen J. Vinju" Date: Tue, 5 Nov 2024 18:31:25 +0100 Subject: [PATCH] minor refactoring for clarity --- src/org/rascalmpl/library/analysis/diff/edits/TextEdits.rsc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), "");