home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.0 / 7.0.170 < prev    next >
Encoding:
Internet Message Format  |  2006-11-27  |  2.5 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.0.170 (extra)
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.0.170 (extra)
  11. Problem:    Win32: Using "gvim --remote-tab foo" when gvim is minimized while
  12.         it previously was maximized, un-maximizing doesn't work properly.
  13.         And the labels are not displayed properly when 'encoding' is
  14.         utf-8.
  15. Solution:   When minimized check for SW_SHOWMINIMIZED.  When updating the tab
  16.         pages line use TCM_SETITEMW instead of TCM_INSERTITEMW. (Liu
  17.         Yubao)
  18. Files:        src/gui_w48.c
  19.  
  20.  
  21. *** ../vim-7.0.169/src/gui_w48.c    Tue Nov  7 19:05:36 2006
  22. --- src/gui_w48.c    Mon Nov 27 22:26:15 2006
  23. ***************
  24. *** 2405,2412 ****
  25.           tiw.mask = TCIF_TEXT;
  26.           tiw.iImage = -1;
  27.           tiw.pszText = wstr;
  28. !         SendMessage(s_tabhwnd, TCM_INSERTITEMW, (WPARAM)nr,
  29. !                                 (LPARAM)&tiw);
  30.           vim_free(wstr);
  31.           }
  32.       }
  33. --- 2405,2411 ----
  34.           tiw.mask = TCIF_TEXT;
  35.           tiw.iImage = -1;
  36.           tiw.pszText = wstr;
  37. !         SendMessage(s_tabhwnd, TCM_SETITEMW, (WPARAM)nr, (LPARAM)&tiw);
  38.           vim_free(wstr);
  39.           }
  40.       }
  41. ***************
  42. *** 3033,3045 ****
  43.       return OK;
  44.   }
  45.   
  46.   /*
  47.    * Return TRUE if the GUI window is maximized, filling the whole screen.
  48.    */
  49.       int
  50.   gui_mch_maximized()
  51.   {
  52. !     return IsZoomed(s_hwnd);
  53.   }
  54.   
  55.   /*
  56. --- 3032,3056 ----
  57.       return OK;
  58.   }
  59.   
  60. + #ifndef WPF_RESTORETOMAXIMIZED
  61. + # define WPF_RESTORETOMAXIMIZED 2   /* just in case someone doesn't have it */
  62. + #endif
  63.   /*
  64.    * Return TRUE if the GUI window is maximized, filling the whole screen.
  65.    */
  66.       int
  67.   gui_mch_maximized()
  68.   {
  69. !     WINDOWPLACEMENT wp;
  70. !     wp.length = sizeof(WINDOWPLACEMENT);
  71. !     if (GetWindowPlacement(s_hwnd, &wp))
  72. !     return wp.showCmd == SW_SHOWMAXIMIZED
  73. !         || (wp.showCmd == SW_SHOWMINIMIZED
  74. !             && wp.flags == WPF_RESTORETOMAXIMIZED);
  75. !     return 0;
  76.   }
  77.   
  78.   /*
  79. *** ../vim-7.0.169/src/version.c    Tue Nov 28 16:16:03 2006
  80. --- src/version.c    Tue Nov 28 17:16:07 2006
  81. ***************
  82. *** 668,669 ****
  83. --- 668,671 ----
  84.   {   /* Add new patch number below this line */
  85. + /**/
  86. +     170,
  87.   /**/
  88.  
  89. -- 
  90. Veni, Vidi, Video -- I came, I saw, I taped what I saw.
  91.  
  92.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  93. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  94. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  95.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  96.