1
0
forked from aniani/vim

updated for version 7.3.038

Problem:    v:windowid isn't set on MS-Windows.
Solution:   Set it to the window handle. (Chris Sutcliffe)
This commit is contained in:
Bram Moolenaar 2010-10-27 12:33:17 +02:00
parent 6b5ef067a5
commit 264e9fd61b
3 changed files with 12 additions and 1 deletions

View File

@ -1660,7 +1660,11 @@ v:warningmsg Last given warning message. It's allowed to set this variable.
*v:windowid* *windowid-variable* *v:windowid* *windowid-variable*
v:windowid When any X11 based GUI is running or when running in a 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 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* 4. Builtin Functions *functions*

View File

@ -1573,6 +1573,11 @@ gui_mch_init(void)
# endif # endif
#endif #endif
#ifdef FEAT_EVAL
/* set the v:windowid variable */
set_vim_var_nr(VV_WINDOWID, (long)s_hwnd);
#endif
theend: theend:
/* Display any pending error messages */ /* Display any pending error messages */
display_errors(); display_errors();

View File

@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
38,
/**/ /**/
37, 37,
/**/ /**/