* magit.el (magit-buffer-switch): Fix window restoration when magit buffer is visible.