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