Keep scroll position when switching files