Do not move cursor position when shrinking terminal

Fixes #33