Don't attempt to find the cursor if the TextArea width is unknown. Fixes #915

pull/924/head
Oliver 6 months ago
parent 1b91b8131c
commit 05d01944a1

@ -1443,7 +1443,7 @@ func (t *TextArea) findCursor(clamp bool, startRow int) {
t.cursor.column = t.cursor.actualColumn
}()
if !clamp && t.cursor.row >= 0 {
if !clamp && t.cursor.row >= 0 || t.lastWidth <= 0 {
return // Nothing to do.
}

Loading…
Cancel
Save