]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.0-049 v7.0.049
authorBram Moolenaar <Bram@vim.org>
Tue, 8 Aug 2006 18:54:11 +0000 (18:54 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 8 Aug 2006 18:54:11 +0000 (18:54 +0000)
runtime/scripts.vim
src/version.c

index e709d9544423e6c35a8c1790419a1fe12bbea173..275b7ebc19d4c4c369abbd9dde59a1e95057bb28 100644 (file)
@@ -1,7 +1,7 @@
 " Vim support file to detect file types in scripts
 "
 " Maintainer:  Bram Moolenaar <Bram@vim.org>
-" Last change: 2006 Mar 28
+" Last change: 2006 Jul 08
 
 " This file is called by an autocommand for every file that has just been
 " loaded into a buffer.  It checks if the type of file can be recognized by
@@ -54,6 +54,12 @@ if s:line1 =~ "^#!"
     let s:name = substitute(s:line1, '^#!\s*\S*[/\\]\(\i\+\).*', '\1', '')
   endif
 
+  " tcl scripts may have #!/bin/sh in the first line and "exec wish" in the
+  " third line.  Suggested by Steven Atkinson.
+  if getline(3) =~ '^exec wish'
+    let s:name = 'wish'
+  endif
+
   " Bourne-like shell scripts: bash bash2 ksh ksh93 sh
   if s:name =~ '^\(bash\d*\|\|ksh\d*\|sh\)\>'
     call SetFileTypeSH(s:line1)        " defined in filetype.vim
index e2c8c3929fbc0358fb0347e99a88e34137ba4ba7..fffb90bf7e7492c25cf6ae0748ddf8410de329bf 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    49,
 /**/
     48,
 /**/