diff --git a/src/os_win32.c b/src/os_win32.c index 121ff2aa1b..02f87102c1 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -1557,7 +1557,13 @@ WaitForChar(long msec, int ignore_input) if (ir.EventType == FOCUS_EVENT) handle_focus_event(ir); else if (ir.EventType == WINDOW_BUFFER_SIZE_EVENT) - shell_resized(); + { + /* Only call shell_resized() when the size actually change to + * avoid the screen is cleard. */ + if (ir.Event.WindowBufferSizeEvent.dwSize.X != Columns + || ir.Event.WindowBufferSizeEvent.dwSize.Y != Rows) + shell_resized(); + } #ifdef FEAT_MOUSE else if (ir.EventType == MOUSE_EVENT && decode_mouse_event(&ir.Event.MouseEvent)) diff --git a/src/version.c b/src/version.c index 5c72d8d73d..968f1e00d1 100644 --- a/src/version.c +++ b/src/version.c @@ -771,6 +771,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1504, /**/ 1503, /**/