Skip to content

Commit

Permalink
minor refactoring for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Nov 5, 2024
1 parent 6fa3b43 commit 7cbf0de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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), "<separator><insertion>");
: replace(range.top(range.offset + range.length, 0), "<separator><insertion>");

0 comments on commit 7cbf0de

Please sign in to comment.