home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.0 / 7.0.076 < prev    next >
Encoding:
Internet Message Format  |  2006-08-28  |  2.6 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.0.076
  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.076 (after 7.0.010)
  11. Problem:    Automatic downloading of spell files only works for ftp.
  12. Solution:   Don't add login and password for non-ftp URLs. (Alexander Patrakov)
  13. Files:      runtime/autoload/spellfile.vim
  14.  
  15.  
  16. *** ../vim-7.0.075/runtime/autoload/spellfile.vim    Sat May 13 14:29:16 2006
  17. --- runtime/autoload/spellfile.vim    Tue Aug 29 22:17:03 2006
  18. ***************
  19. *** 1,6 ****
  20.   " Vim script to download a missing spell file
  21.   " Maintainer:    Bram Moolenaar <Bram@vim.org>
  22. ! " Last Change:    2006 May 10
  23.   
  24.   if !exists('g:spellfile_URL')
  25.     let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell'
  26. --- 1,6 ----
  27.   " Vim script to download a missing spell file
  28.   " Maintainer:    Bram Moolenaar <Bram@vim.org>
  29. ! " Last Change:    2006 Aug 29
  30.   
  31.   if !exists('g:spellfile_URL')
  32.     let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell'
  33. ***************
  34. *** 110,118 ****
  35.     endif
  36.   endfunc
  37.   
  38. ! " Read "fname" from the ftp server.
  39.   function! spellfile#Nread(fname)
  40. !   let machine = substitute(g:spellfile_URL, 'ftp://\([^/]*\).*', '\1', '')
  41. !   let dir = substitute(g:spellfile_URL, 'ftp://[^/]*/\(.*\)', '\1', '')
  42. !   exe 'Nread "' . machine . ' anonymous vim7user ' . dir . '/' . a:fname . '"'
  43.   endfunc
  44. --- 110,123 ----
  45.     endif
  46.   endfunc
  47.   
  48. ! " Read "fname" from the server.
  49.   function! spellfile#Nread(fname)
  50. !   if g:spellfile_URL =~ '^ftp://'
  51. !     " for an ftp server use a default login and password to avoid a prompt
  52. !     let machine = substitute(g:spellfile_URL, 'ftp://\([^/]*\).*', '\1', '')
  53. !     let dir = substitute(g:spellfile_URL, 'ftp://[^/]*/\(.*\)', '\1', '')
  54. !     exe 'Nread "' . machine . ' anonymous vim7user ' . dir . '/' . a:fname . '"'
  55. !   else
  56. !     exe 'Nread ' g:spellfile_URL . '/' . a:fname
  57. !   endif
  58.   endfunc
  59. *** ../vim-7.0.075/src/version.c    Tue Aug 29 21:59:25 2006
  60. --- src/version.c    Tue Aug 29 22:31:45 2006
  61. ***************
  62. *** 668,669 ****
  63. --- 668,671 ----
  64.   {   /* Add new patch number below this line */
  65. + /**/
  66. +     76,
  67.   /**/
  68.  
  69. -- 
  70. This sentence is not sure that it exists, but if it does, it will
  71. certainly consider the possibility that other sentences exist.
  72.  
  73.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  74. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  75. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  76.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  77.