Install a plugin "expand-region".
Install a package "multiple-cursors".
Don't handle magit's window with popwin.

After closing magit's window managed by popwin, the window split remains.