]> git.pld-linux.org Git - packages/vim.git/blame - 7.2.105
- new
[packages/vim.git] / 7.2.105
CommitLineData
9512a71a
AG
1To: vim-dev@vim.org
2Subject: Patch 7.2.105
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.2.105
11Problem: Modeline setting for 'foldmethod' overrules diff options. (Ingo
12 Karkat)
13Solution: Don't set 'foldmethod' and 'wrap' from a modeline when 'diff' is
14 on.
15Files: src/option.c
16
17
18*** ../vim-7.2.104/src/option.c Wed Feb 11 11:34:24 2009
19--- src/option.c Wed Feb 11 16:29:56 2009
20***************
21*** 4119,4129 ****
22 && options[opt_idx].var == VAR_WIN)
23 goto skip;
24
25! /* Disallow changing some options from modelines */
26! if ((opt_flags & OPT_MODELINE) && (flags & P_SECURE))
27 {
28! errmsg = (char_u *)_("E520: Not allowed in a modeline");
29! goto skip;
30 }
31
32 #ifdef HAVE_SANDBOX
33--- 4119,4139 ----
34 && options[opt_idx].var == VAR_WIN)
35 goto skip;
36
37! /* Disallow changing some options from modelines. */
38! if (opt_flags & OPT_MODELINE)
39 {
40! if (flags & P_SECURE)
41! {
42! errmsg = (char_u *)_("E520: Not allowed in a modeline");
43! goto skip;
44! }
45! /* In diff mode some options are overruled. This avoids that
46! * 'foldmethod' becomes "marker" instead of "diff" and that
47! * "wrap" gets set. */
48! if (curwin->w_p_diff
49! && (options[opt_idx].indir == PV_FDM
50! || options[opt_idx].indir == PV_WRAP))
51! goto skip;
52 }
53
54 #ifdef HAVE_SANDBOX
55*** ../vim-7.2.104/src/version.c Wed Feb 11 16:02:29 2009
56--- src/version.c Wed Feb 11 16:40:35 2009
57***************
58*** 678,679 ****
59--- 678,681 ----
60 { /* Add new patch number below this line */
61+ /**/
62+ 105,
63 /**/
64
65--
66hundred-and-one symptoms of being an internet addict:
6776. Your ISP regards you as a business partner rather than as a customer.
68
69 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
70/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
71\\\ download, build and distribute -- http://www.A-A-P.org ///
72 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
This page took 0.05072 seconds and 4 git commands to generate.