]> granicus.if.org Git - vim/commitdiff
updated for version 7.0-076 v7.0.076
authorBram Moolenaar <Bram@vim.org>
Tue, 29 Aug 2006 20:31:34 +0000 (20:31 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 29 Aug 2006 20:31:34 +0000 (20:31 +0000)
runtime/autoload/spellfile.vim
src/version.c

index 405202da1cd219ab80e07ee4c7dc68524754ce22..e9694967d1d38dca8360552e607c7f6c5939ca34 100644 (file)
@@ -1,6 +1,6 @@
 " Vim script to download a missing spell file
 " Maintainer:  Bram Moolenaar <Bram@vim.org>
-" Last Change: 2006 May 10
+" Last Change: 2006 Aug 29
 
 if !exists('g:spellfile_URL')
   let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell'
@@ -110,9 +110,14 @@ function! spellfile#LoadFile(lang)
   endif
 endfunc
 
-" Read "fname" from the ftp server.
+" Read "fname" from the server.
 function! spellfile#Nread(fname)
-  let machine = substitute(g:spellfile_URL, 'ftp://\([^/]*\).*', '\1', '')
-  let dir = substitute(g:spellfile_URL, 'ftp://[^/]*/\(.*\)', '\1', '')
-  exe 'Nread "' . machine . ' anonymous vim7user ' . dir . '/' . a:fname . '"'
+  if g:spellfile_URL =~ '^ftp://'
+    " for an ftp server use a default login and password to avoid a prompt
+    let machine = substitute(g:spellfile_URL, 'ftp://\([^/]*\).*', '\1', '')
+    let dir = substitute(g:spellfile_URL, 'ftp://[^/]*/\(.*\)', '\1', '')
+    exe 'Nread "' . machine . ' anonymous vim7user ' . dir . '/' . a:fname . '"'
+  else
+    exe 'Nread ' g:spellfile_URL . '/' . a:fname
+  endif
 endfunc
index 13bd39456712625a4ab3eb09f786075663076e4f..722107c73fe7b57b5709c293c36e5005e2f96155 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    76,
 /**/
     75,
 /**/