widget: drop obsolete comment fragment

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This commit is contained in:
Chris Waldon
2023-01-10 12:17:35 -05:00
committed by Elias Naur
parent f8221bb2ab
commit f6d56dba89
-3
View File
@@ -476,9 +476,6 @@ func (e *textView) invalidate() {
// Replace the text between start and end with s. Indices are in runes.
// It returns the number of runes inserted.
// addHistory controls whether this modification is recorded in the undo
// history. Replace can modify text in positions unrelated to the cursor
// position.
func (e *textView) Replace(start, end int, s string) int {
if start > end {
start, end = end, start