fix initial cursor position after restore
don’t show a save dialog when a window is closed