Fix bug in GetSelectedString in TextEdit

This commit is contained in:
Luke I. Wilson 2021-03-18 19:46:36 -05:00
parent cac950afd6
commit c8729aebb8

View File

@ -391,6 +391,7 @@ func (t *TextEdit) GetSelectedString() string {
} else { // Normal access
lastLine = string([]rune(lastLine)[:t.selection.EndCol+1])
}
lines[len(lines)-1] = lastLine
lines[0] = string([]rune(lines[0])[t.selection.StartCol:]) // Start first line at start col