To: vim_dev@googlegroups.com Subject: Patch 8.0.1504 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1504 Problem: Win32: the screen may be cleared on startup. Solution: Only call shell_resized() when the size actually changed. (Ken Takata, closes #2527) Files: src/os_win32.c *** ../vim-8.0.1503/src/os_win32.c 2018-02-10 18:45:21.080822072 +0100 --- src/os_win32.c 2018-02-11 16:38:10.320628524 +0100 *************** *** 1557,1563 **** if (ir.EventType == FOCUS_EVENT) handle_focus_event(ir); else if (ir.EventType == WINDOW_BUFFER_SIZE_EVENT) ! shell_resized(); #ifdef FEAT_MOUSE else if (ir.EventType == MOUSE_EVENT && decode_mouse_event(&ir.Event.MouseEvent)) --- 1557,1569 ---- if (ir.EventType == FOCUS_EVENT) handle_focus_event(ir); else if (ir.EventType == WINDOW_BUFFER_SIZE_EVENT) ! { ! /* 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)) *** ../vim-8.0.1503/src/version.c 2018-02-11 15:38:36.178925960 +0100 --- src/version.c 2018-02-11 16:38:57.916292242 +0100 *************** *** 773,774 **** --- 773,776 ---- { /* Add new patch number below this line */ + /**/ + 1504, /**/ -- Individualists unite! /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///