]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - vim/patches/vim-7.3.258.patch0
vim: Update configuration file.
[people/arne_f/ipfire-3.x.git] / vim / patches / vim-7.3.258.patch0
CommitLineData
c6060300
MT
1To: vim_dev@googlegroups.com
2Subject: Patch 7.3.258
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.3.258
11Problem: MS-Windows: The edit with existing vim context menu entries can be
12 unwanted.
13Solution: Let a registry entry disable them. (Jerome Vuarand)
14Files: 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!
34! HKEY keyhandle;
35! bool showExisting = true;
36!
37! // Check whether "Edit with existing Vim" entries are disabled.
38! if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\Vim\\Gvim", 0,
39! KEY_READ, &keyhandle) == ERROR_SUCCESS)
40! {
41! if (RegQueryValueEx(keyhandle, "DisableEditWithExisting", 0, NULL,
42! NULL, NULL) == ERROR_SUCCESS)
43! showExisting = false;
44! RegCloseKey(keyhandle);
45! }
46!
47! // Retrieve all the vim instances, unless disabled.
48! if (showExisting)
49! EnumWindows(EnumWindowsProc, (LPARAM)this);
50
51 if (cbFiles > 1)
52 {
53*** ../vim-7.3.257/src/version.c 2011-07-20 16:36:35.000000000 +0200
54--- src/version.c 2011-07-20 16:54:34.000000000 +0200
55***************
56*** 711,712 ****
57--- 711,714 ----
58 { /* Add new patch number below this line */
59+ /**/
60+ 258,
61 /**/
62
63--
64What the word 'politics' means: 'Poli' in Latin meaning 'many' and 'tics'
65meaning 'bloodsucking creatures'.
66
67 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
68/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
69\\\ an exciting new programming language -- http://www.Zimbu.org ///
70 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///