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