diff --git a/textarea.go b/textarea.go index 1cc23b6..33b3e43 100644 --- a/textarea.go +++ b/textarea.go @@ -1218,10 +1218,14 @@ func (t *TextArea) Draw(screen tcell.Screen) { } }() - // Placeholder. - if t.length == 0 && len(t.placeholder) > 0 { - t.drawPlaceholder(screen, x, y, width, height) + // No text / placeholder. + if t.length == 0 { t.lastHeight, t.lastWidth = height, width + t.cursor.row, t.cursor.column, t.cursor.actualColumn, t.cursor.pos = 0, 0, 0, [3]int{1, 0, -1} + t.rowOffset, t.columnOffset = 0, 0 + if len(t.placeholder) > 0 { + t.drawPlaceholder(screen, x, y, width, height) + } return // We're done already. }