Mirror of the Vim source from https://github.com/vim/vim
Revisión | f03c3fae0a99dd626469bdb66c0d7b9406e93a83 (tree) |
---|---|
Tiempo | 2006-08-30 05:31:34 |
Autor | vimboss |
Commiter | vimboss |
updated for version 7.0-076
@@ -1,6 +1,6 @@ | ||
1 | 1 | " Vim script to download a missing spell file |
2 | 2 | " Maintainer: Bram Moolenaar <Bram@vim.org> |
3 | -" Last Change: 2006 May 10 | |
3 | +" Last Change: 2006 Aug 29 | |
4 | 4 | |
5 | 5 | if !exists('g:spellfile_URL') |
6 | 6 | let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell' |
@@ -110,9 +110,14 @@ | ||
110 | 110 | endif |
111 | 111 | endfunc |
112 | 112 | |
113 | -" Read "fname" from the ftp server. | |
113 | +" Read "fname" from the server. | |
114 | 114 | function! spellfile#Nread(fname) |
115 | - let machine = substitute(g:spellfile_URL, 'ftp://\([^/]*\).*', '\1', '') | |
116 | - let dir = substitute(g:spellfile_URL, 'ftp://[^/]*/\(.*\)', '\1', '') | |
117 | - exe 'Nread "' . machine . ' anonymous vim7user ' . dir . '/' . a:fname . '"' | |
115 | + if g:spellfile_URL =~ '^ftp://' | |
116 | + " for an ftp server use a default login and password to avoid a prompt | |
117 | + let machine = substitute(g:spellfile_URL, 'ftp://\([^/]*\).*', '\1', '') | |
118 | + let dir = substitute(g:spellfile_URL, 'ftp://[^/]*/\(.*\)', '\1', '') | |
119 | + exe 'Nread "' . machine . ' anonymous vim7user ' . dir . '/' . a:fname . '"' | |
120 | + else | |
121 | + exe 'Nread ' g:spellfile_URL . '/' . a:fname | |
122 | + endif | |
118 | 123 | endfunc |
@@ -667,6 +667,8 @@ | ||
667 | 667 | static int included_patches[] = |
668 | 668 | { /* Add new patch number below this line */ |
669 | 669 | /**/ |
670 | + 76, | |
671 | +/**/ | |
670 | 672 | 75, |
671 | 673 | /**/ |
672 | 674 | 74, |