Subject: bug#61361: cursor cannot be at the start of overlay that starts with a newline

From: Xinyang Chen <[email-masked]>
Date: Tue, 7 Feb 2023 23:29:31 -0500

steps to reproduce:
;; test line
(if (and (boundp 'overlay) (overlayp overlay)) (delete-overlay overlay))
(setq overlay (make-overlay 1 2))
(overlay-put overlay 'display "\nhello")
;; same result if you do this intead
;; (overlay-put overlay 'display (propertize "\nhello" 'cursor 0))

cursor does not display in the first line.