]> git.pld-linux.org Git - packages/vim.git/blob - 7.0.049
- new
[packages/vim.git] / 7.0.049
1 To: vim-dev@vim.org
2 Subject: Patch 7.0.049
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.0.049
11 Problem:    Some TCL scripts are not recognized. (Steven Atkinson)
12 Solution:   Check for "exec wish" in the file.
13 Files:      runtime/scripts.vim
14
15
16 *** ../vim-7.0.048/runtime/scripts.vim  Tue Mar 28 23:07:11 2006
17 --- runtime/scripts.vim Sat Jul  8 22:20:51 2006
18 ***************
19 *** 1,7 ****
20   " Vim support file to detect file types in scripts
21   "
22   " Maintainer: Bram Moolenaar <Bram@vim.org>
23 ! " Last change:        2006 Mar 28
24   
25   " This file is called by an autocommand for every file that has just been
26   " loaded into a buffer.  It checks if the type of file can be recognized by
27 --- 1,7 ----
28   " Vim support file to detect file types in scripts
29   "
30   " Maintainer: Bram Moolenaar <Bram@vim.org>
31 ! " Last change:        2006 Jul 08
32   
33   " This file is called by an autocommand for every file that has just been
34   " loaded into a buffer.  It checks if the type of file can be recognized by
35 ***************
36 *** 52,57 ****
37 --- 52,63 ----
38       let s:name = substitute(s:line1, '^#!\s*\([^/\\ ]*\>\).*', '\1', '')
39     else
40       let s:name = substitute(s:line1, '^#!\s*\S*[/\\]\(\i\+\).*', '\1', '')
41 +   endif
42
43 +   " tcl scripts may have #!/bin/sh in the first line and "exec wish" in the
44 +   " third line.  Suggested by Steven Atkinson.
45 +   if getline(3) =~ '^exec wish'
46 +     let s:name = 'wish'
47     endif
48   
49     " Bourne-like shell scripts: bash bash2 ksh ksh93 sh
50 *** ../vim-7.0.048/src/version.c        Tue Aug  8 19:55:06 2006
51 --- src/version.c       Tue Aug  8 20:53:58 2006
52 ***************
53 *** 668,669 ****
54 --- 668,671 ----
55   {   /* Add new patch number below this line */
56 + /**/
57 +     49,
58   /**/
59
60 -- 
61 I AM THANKFUL...
62 ...for the piles of laundry and ironing because it means I
63 have plenty of clothes to wear.
64
65  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
66 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
67 \\\        download, build and distribute -- http://www.A-A-P.org        ///
68  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.030634 seconds and 3 git commands to generate.