• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revisionf66abfa335bb76d20f2a375f148fb7705bfde287 (tree)
Time2006-11-29 01:16:58
Authorvimboss
Commitervimboss

Log Message

updated for version 7.0-170

Change Summary

Incremental Difference

diff -r 10d7ebdbe8a3 -r f66abfa335bb src/gui_w48.c
--- a/src/gui_w48.c Tue Nov 28 15:14:56 2006 +0000
+++ b/src/gui_w48.c Tue Nov 28 16:16:58 2006 +0000
@@ -2405,8 +2405,7 @@
24052405 tiw.mask = TCIF_TEXT;
24062406 tiw.iImage = -1;
24072407 tiw.pszText = wstr;
2408- SendMessage(s_tabhwnd, TCM_INSERTITEMW, (WPARAM)nr,
2409- (LPARAM)&tiw);
2408+ SendMessage(s_tabhwnd, TCM_SETITEMW, (WPARAM)nr, (LPARAM)&tiw);
24102409 vim_free(wstr);
24112410 }
24122411 }
@@ -3033,13 +3032,25 @@
30333032 return OK;
30343033 }
30353034
3035+#ifndef WPF_RESTORETOMAXIMIZED
3036+# define WPF_RESTORETOMAXIMIZED 2 /* just in case someone doesn't have it */
3037+#endif
3038+
30363039 /*
30373040 * Return TRUE if the GUI window is maximized, filling the whole screen.
30383041 */
30393042 int
30403043 gui_mch_maximized()
30413044 {
3042- return IsZoomed(s_hwnd);
3045+ WINDOWPLACEMENT wp;
3046+
3047+ wp.length = sizeof(WINDOWPLACEMENT);
3048+ if (GetWindowPlacement(s_hwnd, &wp))
3049+ return wp.showCmd == SW_SHOWMAXIMIZED
3050+ || (wp.showCmd == SW_SHOWMINIMIZED
3051+ && wp.flags == WPF_RESTORETOMAXIMIZED);
3052+
3053+ return 0;
30433054 }
30443055
30453056 /*
diff -r 10d7ebdbe8a3 -r f66abfa335bb src/version.c
--- a/src/version.c Tue Nov 28 15:14:56 2006 +0000
+++ b/src/version.c Tue Nov 28 16:16:58 2006 +0000
@@ -667,6 +667,8 @@
667667 static int included_patches[] =
668668 { /* Add new patch number below this line */
669669 /**/
670+ 170,
671+/**/
670672 169,
671673 /**/
672674 168,
Show on old repository browser