Fix bug in GetSelectedString in TextEdit
This commit is contained in:
parent
cac950afd6
commit
c8729aebb8
@ -391,6 +391,7 @@ func (t *TextEdit) GetSelectedString() string {
|
|||||||
} else { // Normal access
|
} else { // Normal access
|
||||||
lastLine = string([]rune(lastLine)[:t.selection.EndCol+1])
|
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
|
lines[0] = string([]rune(lines[0])[t.selection.StartCol:]) // Start first line at start col
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user