move the ref view's selection cursor up if the terminal shrinks too much bug found by naddy ok naddy