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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui