Problem: use-after-free in win_move_after if win_enter autocommands free win1/2. Solution: set w_pos_changed before calling win_enter. (cherry picked from commit d1189ea508, also adding an import of "exec" in the test)
d1189ea508