Extracted empty-text caret computation.
Extracted empty-text caret computation.

lukas-ke/faint-graphics-editor,lukas-ke/faint-graphics-editor,lukas-ke/faint-graphics-editor,lukas-ke/faint-graphics-editor