Preseve position on refresh

Without this, refreshing buffers would cause the window to scroll.