core: fix display of read marker (as horizontal line) or day change message after last buffer line when scrolling (bug #40126)