home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.038 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  2.6 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.038
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.038
  11. Problem:    v:windowid isn't set on MS-Windows.
  12. Solution:   Set it to the window handle. (Chris Sutcliffe)
  13. Files:        runtime/doc/eval.txt, src/gui_w32.c
  14.  
  15.  
  16. *** ../vim-7.3.037/runtime/doc/eval.txt    2010-10-20 21:22:17.000000000 +0200
  17. --- runtime/doc/eval.txt    2010-10-27 12:23:37.000000000 +0200
  18. ***************
  19. *** 1660,1666 ****
  20.                       *v:windowid* *windowid-variable*
  21.   v:windowid    When any X11 based GUI is running or when running in a
  22.           terminal and Vim connects to the X server (|-X|) this will be
  23. !         set to the window ID.  Otherwise the value is zero.
  24.   
  25.   ==============================================================================
  26.   4. Builtin Functions                    *functions*
  27. --- 1660,1670 ----
  28.                       *v:windowid* *windowid-variable*
  29.   v:windowid    When any X11 based GUI is running or when running in a
  30.           terminal and Vim connects to the X server (|-X|) this will be
  31. !         set to the window ID.
  32. !         When an MS-Windows GUI is running this will be set to the
  33. !         window handle.
  34. !         Otherwise the value is zero.
  35. !         Note: for windows inside Vim use |winnr()|.
  36.   
  37.   ==============================================================================
  38.   4. Builtin Functions                    *functions*
  39. *** ../vim-7.3.037/src/gui_w32.c    2010-10-27 12:15:28.000000000 +0200
  40. --- src/gui_w32.c    2010-10-27 12:21:22.000000000 +0200
  41. ***************
  42. *** 1573,1578 ****
  43. --- 1573,1583 ----
  44.   # endif
  45.   #endif
  46.   
  47. + #ifdef FEAT_EVAL
  48. +     /* set the v:windowid variable */
  49. +     set_vim_var_nr(VV_WINDOWID, (long)s_hwnd);
  50. + #endif
  51.   theend:
  52.       /* Display any pending error messages */
  53.       display_errors();
  54. *** ../vim-7.3.037/src/version.c    2010-10-27 12:17:54.000000000 +0200
  55. --- src/version.c    2010-10-27 12:24:38.000000000 +0200
  56. ***************
  57. *** 716,717 ****
  58. --- 716,719 ----
  59.   {   /* Add new patch number below this line */
  60. + /**/
  61. +     38,
  62.   /**/
  63.  
  64. -- 
  65. ARTHUR:        What?
  66. BLACK KNIGHT:  None shall pass.
  67. ARTHUR:        I have no quarrel with you, good Sir knight, but I must cross
  68.                this bridge.
  69. BLACK KNIGHT:  Then you shall die.
  70.                                   The Quest for the Holy Grail (Monty Python)
  71.  
  72.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  73. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  74. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  75.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  76.