# HG changeset patch # User Bram Moolenaar # Date 1319127152 -7200 # Node ID 49b08c9b9f5b72d930a1c02f00aa4128dc58532d # Parent 7182e0a6a43702338862473e446393d4edf786b3 updated for version 7.3.340 Problem: When 'verbosefile' is set ftplugof.vim can give an error. Solution: Only remove filetypeplugin autocommands when they exist. (Yasuhiro Matsumoto) diff --git a/runtime/ftplugof.vim b/runtime/ftplugof.vim --- a/runtime/ftplugof.vim +++ b/runtime/ftplugof.vim @@ -1,11 +1,13 @@ " Vim support file to switch off loading plugins for file types " " Maintainer: Bram Moolenaar -" Last Change: 2002 Apr 04 +" Last Change: 2011 Oct 20 if exists("did_load_ftplugin") unlet did_load_ftplugin endif -" Remove all autocommands in the filetypeplugin group -silent! au! filetypeplugin * +" Remove all autocommands in the filetypeplugin group, if any exist. +if exists("#filetypeplugin") + silent! au! filetypeplugin * +endif diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -710,6 +710,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 340, +/**/ 339, /**/ 338,