]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.038 v7.3.038
authorBram Moolenaar <Bram@vim.org>
Wed, 27 Oct 2010 10:33:17 +0000 (12:33 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 27 Oct 2010 10:33:17 +0000 (12:33 +0200)
Problem:    v:windowid isn't set on MS-Windows.
Solution:   Set it to the window handle. (Chris Sutcliffe)

runtime/doc/eval.txt
src/gui_w32.c
src/version.c

index d1a1ba3f21485601704f8f533487b95006ed1889..bceb6800efb93ff6ce5cdb5145187ba213ac4686 100644 (file)
@@ -1660,7 +1660,11 @@ v:warningmsg     Last given warning message.  It's allowed to set this variable.
                                        *v:windowid* *windowid-variable*
 v:windowid     When any X11 based GUI is running or when running in a
                terminal and Vim connects to the X server (|-X|) this will be
-               set to the window ID.  Otherwise the value is zero.
+               set to the window ID.
+               When an MS-Windows GUI is running this will be set to the
+               window handle.
+               Otherwise the value is zero.
+               Note: for windows inside Vim use |winnr()|.
 
 ==============================================================================
 4. Builtin Functions                                   *functions*
index 5071423412f81c664840773af192f0b90dcfd1c3..f3b9c5bb68b4508e32c7bf1cf897cc89640647a9 100644 (file)
@@ -1573,6 +1573,11 @@ gui_mch_init(void)
 # endif
 #endif
 
+#ifdef FEAT_EVAL
+    /* set the v:windowid variable */
+    set_vim_var_nr(VV_WINDOWID, (long)s_hwnd);
+#endif
+
 theend:
     /* Display any pending error messages */
     display_errors();
index ed599f7663d4d49467043d25f76c73297c2954fc..d4244e1c02d46c3cac4b4dbac3a6e32025b0bd52 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    38,
 /**/
     37,
 /**/