|
|
22c937 |
To: vim_dev@googlegroups.com
|
|
|
22c937 |
Subject: Patch 7.4.109
|
|
|
22c937 |
Fcc: outbox
|
|
|
22c937 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
22c937 |
Mime-Version: 1.0
|
|
|
22c937 |
Content-Type: text/plain; charset=UTF-8
|
|
|
22c937 |
Content-Transfer-Encoding: 8bit
|
|
|
22c937 |
------------
|
|
|
22c937 |
|
|
|
22c937 |
Patch 7.4.109
|
|
|
22c937 |
Problem: ColorScheme autocommand matches with the current buffer name.
|
|
|
22c937 |
Solution: Match with the colorscheme name. (Christian Brabandt)
|
|
|
22c937 |
Files: runtime/doc/autocmd.txt, src/fileio.c, src/syntax.c
|
|
|
22c937 |
|
|
|
22c937 |
|
|
|
22c937 |
*** ../vim-7.4.108/runtime/doc/autocmd.txt 2013-08-10 13:24:52.000000000 +0200
|
|
|
22c937 |
--- runtime/doc/autocmd.txt 2013-11-28 18:44:20.000000000 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 480,485 ****
|
|
|
22c937 |
--- 480,491 ----
|
|
|
22c937 |
|cmdwin-char|
|
|
|
22c937 |
*ColorScheme*
|
|
|
22c937 |
ColorScheme After loading a color scheme. |:colorscheme|
|
|
|
22c937 |
+ The pattern is matched against the
|
|
|
22c937 |
+ colorscheme name. <afile> can be used for the
|
|
|
22c937 |
+ name of the actual file where this option was
|
|
|
22c937 |
+ set, and <amatch> for the new colorscheme
|
|
|
22c937 |
+ name.
|
|
|
22c937 |
+
|
|
|
22c937 |
|
|
|
22c937 |
*CompleteDone*
|
|
|
22c937 |
CompleteDone After Insert mode completion is done. Either
|
|
|
22c937 |
*** ../vim-7.4.108/src/fileio.c 2013-11-12 18:09:20.000000000 +0100
|
|
|
22c937 |
--- src/fileio.c 2013-11-28 18:44:20.000000000 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 9330,9336 ****
|
|
|
22c937 |
*/
|
|
|
22c937 |
if (fname_io == NULL)
|
|
|
22c937 |
{
|
|
|
22c937 |
! if (fname != NULL && *fname != NUL)
|
|
|
22c937 |
autocmd_fname = fname;
|
|
|
22c937 |
else if (buf != NULL)
|
|
|
22c937 |
autocmd_fname = buf->b_ffname;
|
|
|
22c937 |
--- 9330,9338 ----
|
|
|
22c937 |
*/
|
|
|
22c937 |
if (fname_io == NULL)
|
|
|
22c937 |
{
|
|
|
22c937 |
! if (event == EVENT_COLORSCHEME)
|
|
|
22c937 |
! autocmd_fname = NULL;
|
|
|
22c937 |
! else if (fname != NULL && *fname != NUL)
|
|
|
22c937 |
autocmd_fname = fname;
|
|
|
22c937 |
else if (buf != NULL)
|
|
|
22c937 |
autocmd_fname = buf->b_ffname;
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 9383,9396 ****
|
|
|
22c937 |
else
|
|
|
22c937 |
{
|
|
|
22c937 |
sfname = vim_strsave(fname);
|
|
|
22c937 |
! /* Don't try expanding FileType, Syntax, FuncUndefined, WindowID or
|
|
|
22c937 |
! * QuickFixCmd* */
|
|
|
22c937 |
if (event == EVENT_FILETYPE
|
|
|
22c937 |
|| event == EVENT_SYNTAX
|
|
|
22c937 |
|| event == EVENT_FUNCUNDEFINED
|
|
|
22c937 |
|| event == EVENT_REMOTEREPLY
|
|
|
22c937 |
|| event == EVENT_SPELLFILEMISSING
|
|
|
22c937 |
|| event == EVENT_QUICKFIXCMDPRE
|
|
|
22c937 |
|| event == EVENT_QUICKFIXCMDPOST)
|
|
|
22c937 |
fname = vim_strsave(fname);
|
|
|
22c937 |
else
|
|
|
22c937 |
--- 9385,9399 ----
|
|
|
22c937 |
else
|
|
|
22c937 |
{
|
|
|
22c937 |
sfname = vim_strsave(fname);
|
|
|
22c937 |
! /* Don't try expanding FileType, Syntax, FuncUndefined, WindowID,
|
|
|
22c937 |
! * ColorScheme or QuickFixCmd* */
|
|
|
22c937 |
if (event == EVENT_FILETYPE
|
|
|
22c937 |
|| event == EVENT_SYNTAX
|
|
|
22c937 |
|| event == EVENT_FUNCUNDEFINED
|
|
|
22c937 |
|| event == EVENT_REMOTEREPLY
|
|
|
22c937 |
|| event == EVENT_SPELLFILEMISSING
|
|
|
22c937 |
|| event == EVENT_QUICKFIXCMDPRE
|
|
|
22c937 |
+ || event == EVENT_COLORSCHEME
|
|
|
22c937 |
|| event == EVENT_QUICKFIXCMDPOST)
|
|
|
22c937 |
fname = vim_strsave(fname);
|
|
|
22c937 |
else
|
|
|
22c937 |
*** ../vim-7.4.108/src/syntax.c 2013-06-08 16:10:08.000000000 +0200
|
|
|
22c937 |
--- src/syntax.c 2013-11-28 18:44:20.000000000 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 7071,7077 ****
|
|
|
22c937 |
retval = source_runtime(buf, FALSE);
|
|
|
22c937 |
vim_free(buf);
|
|
|
22c937 |
#ifdef FEAT_AUTOCMD
|
|
|
22c937 |
! apply_autocmds(EVENT_COLORSCHEME, NULL, NULL, FALSE, curbuf);
|
|
|
22c937 |
#endif
|
|
|
22c937 |
}
|
|
|
22c937 |
recursive = FALSE;
|
|
|
22c937 |
--- 7071,7077 ----
|
|
|
22c937 |
retval = source_runtime(buf, FALSE);
|
|
|
22c937 |
vim_free(buf);
|
|
|
22c937 |
#ifdef FEAT_AUTOCMD
|
|
|
22c937 |
! apply_autocmds(EVENT_COLORSCHEME, name, curbuf->b_fname, FALSE, curbuf);
|
|
|
22c937 |
#endif
|
|
|
22c937 |
}
|
|
|
22c937 |
recursive = FALSE;
|
|
|
22c937 |
*** ../vim-7.4.108/src/version.c 2013-11-28 17:41:41.000000000 +0100
|
|
|
22c937 |
--- src/version.c 2013-11-28 18:48:42.000000000 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 740,741 ****
|
|
|
22c937 |
--- 740,743 ----
|
|
|
22c937 |
{ /* Add new patch number below this line */
|
|
|
22c937 |
+ /**/
|
|
|
22c937 |
+ 109,
|
|
|
22c937 |
/**/
|
|
|
22c937 |
|
|
|
22c937 |
--
|
|
|
22c937 |
"How is your new girlfriend?"
|
|
|
22c937 |
"90-60-90 man!"
|
|
|
22c937 |
"What, pale purple?"
|
|
|
22c937 |
|
|
|
22c937 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
22c937 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
22c937 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
22c937 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|