Minor bug fix when resizing to keep proper cursor position in bottom window