Fix a bug in scroll_display(): when the scrolled region contains the cursor