Properly draw selection on home, end, page-up and page-down