On hitting the top or bottom, go one line further so that the border can be seen.