mirror of
https://github.com/neovim/neovim.git
synced 2026-09-05 13:40:57 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user