fix(window): crash when closing new curwin during CTRL-W_x (#41378)

Problem:  Crash when closing the new current window during CTRL-W_x.
Solution: Remove a duplicate redraw of a window that should normally be
          already mark for redraw in the previous call.
This commit is contained in:
zeertzjq
2026-08-19 20:13:08 +08:00
committed by GitHub
parent fce4d4502a
commit 2cd4229d01
2 changed files with 12 additions and 1 deletions

View File

@@ -1950,7 +1950,6 @@ static void win_exchange(int Prenum)
win_enter(wp, true);
redraw_later(curwin, UPD_NOT_VALID);
redraw_later(wp, UPD_NOT_VALID);
}
// rotate windows: if upwards true the second window becomes the first one