]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.340 v7.3.340
authorBram Moolenaar <Bram@vim.org>
Thu, 20 Oct 2011 16:12:32 +0000 (18:12 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 20 Oct 2011 16:12:32 +0000 (18:12 +0200)
Problem:    When 'verbosefile' is set ftplugof.vim can give an error.
Solution:   Only remove filetypeplugin autocommands when they exist. (Yasuhiro
            Matsumoto)

runtime/ftplugof.vim
src/version.c

index cd99ce05a2bbdb6fa03f116791da66f28f54f228..7828ff2c159a1c6f9c09783bd078f4a73c2a0f70 100644 (file)
@@ -1,11 +1,13 @@
 " Vim support file to switch off loading plugins for file types
 "
 " Maintainer:  Bram Moolenaar <Bram@vim.org>
-" 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
index 28bf342397c94bc47b8dfd4038364db448704d10..69e29b26516b3551e510034e3a50e4fbe1289909 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    340,
 /**/
     339,
 /**/