[add #181] Preserves the cursor position between files

The cursor position is saved before switching between files when the user returns to the file the cursor position is restored.

This is not perfect, the cursor position can be altered if a co-author has changed the content of the file.