Switching modes loses the active file, it shows the first in the list instead.
Switching modes loses the active file, it shows the first in the list instead.