use window-body-height to calculate position of cursor line (which excludes mode and header line)