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.258 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  2.1 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.258
  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.258
  11. Problem:    MS-Windows: The edit with existing vim context menu entries can be
  12.         unwanted.
  13. Solution:   Let a registry entry disable them. (Jerome Vuarand)
  14. Files:        src/GvimExt/gvimext.cpp
  15.  
  16.  
  17. *** ../vim-7.3.257/src/GvimExt/gvimext.cpp    2010-08-15 21:57:29.000000000 +0200
  18. --- src/GvimExt/gvimext.cpp    2011-07-20 16:48:09.000000000 +0200
  19. ***************
  20. *** 586,593 ****
  21.   
  22.       // Initialize m_cntOfHWnd to 0
  23.       m_cntOfHWnd = 0;
  24. !     // Retrieve all the vim instances
  25. !     EnumWindows(EnumWindowsProc, (LPARAM)this);
  26.   
  27.       if (cbFiles > 1)
  28.       {
  29. --- 586,608 ----
  30.   
  31.       // Initialize m_cntOfHWnd to 0
  32.       m_cntOfHWnd = 0;
  33. !     HKEY keyhandle;
  34. !     bool showExisting = true;
  35. !     // Check whether "Edit with existing Vim" entries are disabled.
  36. !     if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\Vim\\Gvim", 0,
  37. !                        KEY_READ, &keyhandle) == ERROR_SUCCESS)
  38. !     {
  39. !     if (RegQueryValueEx(keyhandle, "DisableEditWithExisting", 0, NULL,
  40. !                          NULL, NULL) == ERROR_SUCCESS)
  41. !         showExisting = false;
  42. !     RegCloseKey(keyhandle);
  43. !     }
  44. !     // Retrieve all the vim instances, unless disabled.
  45. !     if (showExisting)
  46. !     EnumWindows(EnumWindowsProc, (LPARAM)this);
  47.   
  48.       if (cbFiles > 1)
  49.       {
  50. *** ../vim-7.3.257/src/version.c    2011-07-20 16:36:35.000000000 +0200
  51. --- src/version.c    2011-07-20 16:54:34.000000000 +0200
  52. ***************
  53. *** 711,712 ****
  54. --- 711,714 ----
  55.   {   /* Add new patch number below this line */
  56. + /**/
  57. +     258,
  58.   /**/
  59.  
  60. -- 
  61. What the word 'politics' means: 'Poli' in Latin meaning 'many' and 'tics'
  62. meaning 'bloodsucking creatures'.
  63.  
  64.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  65. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  66. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  67.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  68.