|
Karsten Hopp |
74e40e |
To: vim-dev@vim.org
|
|
Karsten Hopp |
74e40e |
Subject: Patch 7.0.076
|
|
Karsten Hopp |
74e40e |
Fcc: outbox
|
|
Karsten Hopp |
74e40e |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
74e40e |
Mime-Version: 1.0
|
|
Karsten Hopp |
74e40e |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
74e40e |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
74e40e |
------------
|
|
Karsten Hopp |
74e40e |
|
|
Karsten Hopp |
74e40e |
Patch 7.0.076 (after 7.0.010)
|
|
Karsten Hopp |
74e40e |
Problem: Automatic downloading of spell files only works for ftp.
|
|
Karsten Hopp |
74e40e |
Solution: Don't add login and password for non-ftp URLs. (Alexander Patrakov)
|
|
Karsten Hopp |
74e40e |
Files: runtime/autoload/spellfile.vim
|
|
Karsten Hopp |
74e40e |
|
|
Karsten Hopp |
74e40e |
|
|
Karsten Hopp |
74e40e |
*** ../vim-7.0.075/runtime/autoload/spellfile.vim Sat May 13 14:29:16 2006
|
|
Karsten Hopp |
74e40e |
--- runtime/autoload/spellfile.vim Tue Aug 29 22:17:03 2006
|
|
Karsten Hopp |
74e40e |
***************
|
|
Karsten Hopp |
74e40e |
*** 1,6 ****
|
|
Karsten Hopp |
74e40e |
" Vim script to download a missing spell file
|
|
Karsten Hopp |
74e40e |
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
|
Karsten Hopp |
74e40e |
! " Last Change: 2006 May 10
|
|
Karsten Hopp |
74e40e |
|
|
Karsten Hopp |
74e40e |
if !exists('g:spellfile_URL')
|
|
Karsten Hopp |
74e40e |
let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell'
|
|
Karsten Hopp |
74e40e |
--- 1,6 ----
|
|
Karsten Hopp |
74e40e |
" Vim script to download a missing spell file
|
|
Karsten Hopp |
74e40e |
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
|
Karsten Hopp |
74e40e |
! " Last Change: 2006 Aug 29
|
|
Karsten Hopp |
74e40e |
|
|
Karsten Hopp |
74e40e |
if !exists('g:spellfile_URL')
|
|
Karsten Hopp |
74e40e |
let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell'
|
|
Karsten Hopp |
74e40e |
***************
|
|
Karsten Hopp |
74e40e |
*** 110,118 ****
|
|
Karsten Hopp |
74e40e |
endif
|
|
Karsten Hopp |
74e40e |
endfunc
|
|
Karsten Hopp |
74e40e |
|
|
Karsten Hopp |
74e40e |
! " Read "fname" from the ftp server.
|
|
Karsten Hopp |
74e40e |
function! spellfile#Nread(fname)
|
|
Karsten Hopp |
74e40e |
! let machine = substitute(g:spellfile_URL, 'ftp://\([^/]*\).*', '\1', '')
|
|
Karsten Hopp |
74e40e |
! let dir = substitute(g:spellfile_URL, 'ftp://[^/]*/\(.*\)', '\1', '')
|
|
Karsten Hopp |
74e40e |
! exe 'Nread "' . machine . ' anonymous vim7user ' . dir . '/' . a:fname . '"'
|
|
Karsten Hopp |
74e40e |
endfunc
|
|
Karsten Hopp |
74e40e |
--- 110,123 ----
|
|
Karsten Hopp |
74e40e |
endif
|
|
Karsten Hopp |
74e40e |
endfunc
|
|
Karsten Hopp |
74e40e |
|
|
Karsten Hopp |
74e40e |
! " Read "fname" from the server.
|
|
Karsten Hopp |
74e40e |
function! spellfile#Nread(fname)
|
|
Karsten Hopp |
74e40e |
! if g:spellfile_URL =~ '^ftp://'
|
|
Karsten Hopp |
74e40e |
! " for an ftp server use a default login and password to avoid a prompt
|
|
Karsten Hopp |
74e40e |
! let machine = substitute(g:spellfile_URL, 'ftp://\([^/]*\).*', '\1', '')
|
|
Karsten Hopp |
74e40e |
! let dir = substitute(g:spellfile_URL, 'ftp://[^/]*/\(.*\)', '\1', '')
|
|
Karsten Hopp |
74e40e |
! exe 'Nread "' . machine . ' anonymous vim7user ' . dir . '/' . a:fname . '"'
|
|
Karsten Hopp |
74e40e |
! else
|
|
Karsten Hopp |
74e40e |
! exe 'Nread ' g:spellfile_URL . '/' . a:fname
|
|
Karsten Hopp |
74e40e |
! endif
|
|
Karsten Hopp |
74e40e |
endfunc
|
|
Karsten Hopp |
74e40e |
*** ../vim-7.0.075/src/version.c Tue Aug 29 21:59:25 2006
|
|
Karsten Hopp |
74e40e |
--- src/version.c Tue Aug 29 22:31:45 2006
|
|
Karsten Hopp |
74e40e |
***************
|
|
Karsten Hopp |
74e40e |
*** 668,669 ****
|
|
Karsten Hopp |
74e40e |
--- 668,671 ----
|
|
Karsten Hopp |
74e40e |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
74e40e |
+ /**/
|
|
Karsten Hopp |
74e40e |
+ 76,
|
|
Karsten Hopp |
74e40e |
/**/
|
|
Karsten Hopp |
74e40e |
|
|
Karsten Hopp |
74e40e |
--
|
|
Karsten Hopp |
74e40e |
This sentence is not sure that it exists, but if it does, it will
|
|
Karsten Hopp |
74e40e |
certainly consider the possibility that other sentences exist.
|
|
Karsten Hopp |
74e40e |
|
|
Karsten Hopp |
74e40e |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
74e40e |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
74e40e |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
74e40e |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|