Remember scroll and cursor position when reloading file from disk