Reopen file at previous position

Kudos to @jezen