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

This commit is contained in:
Oliver 2023-11-13 07:38:14 +01:00
parent 1b91b8131c
commit 05d01944a1
1 changed files with 1 additions and 1 deletions

View File

@ -1443,7 +1443,7 @@ func (t *TextArea) findCursor(clamp bool, startRow int) {
t.cursor.column = t.cursor.actualColumn 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. return // Nothing to do.
} }