core: fix automatic scroll to bottom of buffer when day change is displayed before first line of buffer