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