Fix problem with cursor jumping to top of file when expanding a file view