Use winsaveview() and winrestview()