|
Karsten Hopp |
7f03c0 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
7f03c0 |
Subject: Patch 7.2.105
|
|
Karsten Hopp |
7f03c0 |
Fcc: outbox
|
|
Karsten Hopp |
7f03c0 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
7f03c0 |
Mime-Version: 1.0
|
|
Karsten Hopp |
7f03c0 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
7f03c0 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
7f03c0 |
------------
|
|
Karsten Hopp |
7f03c0 |
|
|
Karsten Hopp |
7f03c0 |
Patch 7.2.105
|
|
Karsten Hopp |
7f03c0 |
Problem: Modeline setting for 'foldmethod' overrules diff options. (Ingo
|
|
Karsten Hopp |
7f03c0 |
Karkat)
|
|
Karsten Hopp |
7f03c0 |
Solution: Don't set 'foldmethod' and 'wrap' from a modeline when 'diff' is
|
|
Karsten Hopp |
7f03c0 |
on.
|
|
Karsten Hopp |
7f03c0 |
Files: src/option.c
|
|
Karsten Hopp |
7f03c0 |
|
|
Karsten Hopp |
7f03c0 |
|
|
Karsten Hopp |
7f03c0 |
*** ../vim-7.2.104/src/option.c Wed Feb 11 11:34:24 2009
|
|
Karsten Hopp |
7f03c0 |
--- src/option.c Wed Feb 11 16:29:56 2009
|
|
Karsten Hopp |
7f03c0 |
***************
|
|
Karsten Hopp |
7f03c0 |
*** 4119,4129 ****
|
|
Karsten Hopp |
7f03c0 |
&& options[opt_idx].var == VAR_WIN)
|
|
Karsten Hopp |
7f03c0 |
goto skip;
|
|
Karsten Hopp |
7f03c0 |
|
|
Karsten Hopp |
7f03c0 |
! /* Disallow changing some options from modelines */
|
|
Karsten Hopp |
7f03c0 |
! if ((opt_flags & OPT_MODELINE) && (flags & P_SECURE))
|
|
Karsten Hopp |
7f03c0 |
{
|
|
Karsten Hopp |
7f03c0 |
! errmsg = (char_u *)_("E520: Not allowed in a modeline");
|
|
Karsten Hopp |
7f03c0 |
! goto skip;
|
|
Karsten Hopp |
7f03c0 |
}
|
|
Karsten Hopp |
7f03c0 |
|
|
Karsten Hopp |
7f03c0 |
#ifdef HAVE_SANDBOX
|
|
Karsten Hopp |
7f03c0 |
--- 4119,4139 ----
|
|
Karsten Hopp |
7f03c0 |
&& options[opt_idx].var == VAR_WIN)
|
|
Karsten Hopp |
7f03c0 |
goto skip;
|
|
Karsten Hopp |
7f03c0 |
|
|
Karsten Hopp |
7f03c0 |
! /* Disallow changing some options from modelines. */
|
|
Karsten Hopp |
7f03c0 |
! if (opt_flags & OPT_MODELINE)
|
|
Karsten Hopp |
7f03c0 |
{
|
|
Karsten Hopp |
7f03c0 |
! if (flags & P_SECURE)
|
|
Karsten Hopp |
7f03c0 |
! {
|
|
Karsten Hopp |
7f03c0 |
! errmsg = (char_u *)_("E520: Not allowed in a modeline");
|
|
Karsten Hopp |
7f03c0 |
! goto skip;
|
|
Karsten Hopp |
7f03c0 |
! }
|
|
Karsten Hopp |
7f03c0 |
! /* In diff mode some options are overruled. This avoids that
|
|
Karsten Hopp |
7f03c0 |
! * 'foldmethod' becomes "marker" instead of "diff" and that
|
|
Karsten Hopp |
7f03c0 |
! * "wrap" gets set. */
|
|
Karsten Hopp |
7f03c0 |
! if (curwin->w_p_diff
|
|
Karsten Hopp |
7f03c0 |
! && (options[opt_idx].indir == PV_FDM
|
|
Karsten Hopp |
7f03c0 |
! || options[opt_idx].indir == PV_WRAP))
|
|
Karsten Hopp |
7f03c0 |
! goto skip;
|
|
Karsten Hopp |
7f03c0 |
}
|
|
Karsten Hopp |
7f03c0 |
|
|
Karsten Hopp |
7f03c0 |
#ifdef HAVE_SANDBOX
|
|
Karsten Hopp |
7f03c0 |
*** ../vim-7.2.104/src/version.c Wed Feb 11 16:02:29 2009
|
|
Karsten Hopp |
7f03c0 |
--- src/version.c Wed Feb 11 16:40:35 2009
|
|
Karsten Hopp |
7f03c0 |
***************
|
|
Karsten Hopp |
7f03c0 |
*** 678,679 ****
|
|
Karsten Hopp |
7f03c0 |
--- 678,681 ----
|
|
Karsten Hopp |
7f03c0 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
7f03c0 |
+ /**/
|
|
Karsten Hopp |
7f03c0 |
+ 105,
|
|
Karsten Hopp |
7f03c0 |
/**/
|
|
Karsten Hopp |
7f03c0 |
|
|
Karsten Hopp |
7f03c0 |
--
|
|
Karsten Hopp |
7f03c0 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
7f03c0 |
76. Your ISP regards you as a business partner rather than as a customer.
|
|
Karsten Hopp |
7f03c0 |
|
|
Karsten Hopp |
7f03c0 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
7f03c0 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
7f03c0 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
7f03c0 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|