76c5253
To: vim_dev@googlegroups.com
76c5253
Subject: Patch 7.3.038
76c5253
Fcc: outbox
76c5253
From: Bram Moolenaar <Bram@moolenaar.net>
76c5253
Mime-Version: 1.0
76c5253
Content-Type: text/plain; charset=UTF-8
76c5253
Content-Transfer-Encoding: 8bit
76c5253
------------
76c5253
76c5253
Patch 7.3.038
76c5253
Problem:    v:windowid isn't set on MS-Windows.
76c5253
Solution:   Set it to the window handle. (Chris Sutcliffe)
76c5253
Files:	    runtime/doc/eval.txt, src/gui_w32.c
76c5253
76c5253
76c5253
*** ../vim-7.3.037/runtime/doc/eval.txt	2010-10-20 21:22:17.000000000 +0200
76c5253
--- runtime/doc/eval.txt	2010-10-27 12:23:37.000000000 +0200
76c5253
***************
76c5253
*** 1660,1666 ****
76c5253
  					*v:windowid* *windowid-variable*
76c5253
  v:windowid	When any X11 based GUI is running or when running in a
76c5253
  		terminal and Vim connects to the X server (|-X|) this will be
76c5253
! 		set to the window ID.  Otherwise the value is zero.
76c5253
  
76c5253
  ==============================================================================
76c5253
  4. Builtin Functions					*functions*
76c5253
--- 1660,1670 ----
76c5253
  					*v:windowid* *windowid-variable*
76c5253
  v:windowid	When any X11 based GUI is running or when running in a
76c5253
  		terminal and Vim connects to the X server (|-X|) this will be
76c5253
! 		set to the window ID.
76c5253
! 		When an MS-Windows GUI is running this will be set to the
76c5253
! 		window handle.
76c5253
! 		Otherwise the value is zero.
76c5253
! 		Note: for windows inside Vim use |winnr()|.
76c5253
  
76c5253
  ==============================================================================
76c5253
  4. Builtin Functions					*functions*
76c5253
*** ../vim-7.3.037/src/gui_w32.c	2010-10-27 12:15:28.000000000 +0200
76c5253
--- src/gui_w32.c	2010-10-27 12:21:22.000000000 +0200
76c5253
***************
76c5253
*** 1573,1578 ****
76c5253
--- 1573,1583 ----
76c5253
  # endif
76c5253
  #endif
76c5253
  
76c5253
+ #ifdef FEAT_EVAL
76c5253
+     /* set the v:windowid variable */
76c5253
+     set_vim_var_nr(VV_WINDOWID, (long)s_hwnd);
76c5253
+ #endif
76c5253
+ 
76c5253
  theend:
76c5253
      /* Display any pending error messages */
76c5253
      display_errors();
76c5253
*** ../vim-7.3.037/src/version.c	2010-10-27 12:17:54.000000000 +0200
76c5253
--- src/version.c	2010-10-27 12:24:38.000000000 +0200
76c5253
***************
76c5253
*** 716,717 ****
76c5253
--- 716,719 ----
76c5253
  {   /* Add new patch number below this line */
76c5253
+ /**/
76c5253
+     38,
76c5253
  /**/
76c5253
76c5253
-- 
76c5253
ARTHUR:        What?
76c5253
BLACK KNIGHT:  None shall pass.
76c5253
ARTHUR:        I have no quarrel with you, good Sir knight, but I must cross
76c5253
               this bridge.
76c5253
BLACK KNIGHT:  Then you shall die.
76c5253
                                  The Quest for the Holy Grail (Monty Python)
76c5253
76c5253
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
76c5253
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
76c5253
\\\        download, build and distribute -- http://www.A-A-P.org        ///
76c5253
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///