Subject: Re: bug#47860: 28.0.50; Mini buffer resize when lines are truncated regression

From: Eli Zaretskii <[email-masked]>
Date: Thu, 22 Apr 2021 14:07:01 +0300

> Date: Mon, 19 Apr 2021 20:40:40 +0300
> From: Eli Zaretskii <[email-masked]>
> Cc: [email-masked], [email-masked]
> 
>   (progn
>     (with-current-buffer (get-buffer-create "foo")
>       (insert "test: ")
>       (overlay-put (make-overlay (point-max) (point-max))
> 		   'after-string "
>   \naaa\nbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\ncccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc")
>       (setq-local truncate-lines t))
>     (switch-to-buffer "foo")
>     (window-text-pixel-size))
> 
> The result indicates that the buffer has only 4 screen lines, whereas
> it actually has 5.

I hope I fixed this now on the master branch, please test.