ff88b0adaf
Fix bug where cursor position wouldn't be saved when switching documents
Fix bug where cursor position wouldn't be saved when switching documents