diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-05-10 19:19:59 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-05-10 19:19:59 +0000 |
commit | 49325942f5451aa3f906cc6aefc9f39b60392bd5 (patch) | |
tree | faa1f3cc42ec542f73ffa8dc0e47e4cd79831528 /runtime/autoload | |
parent | 5f52cff1b346f5674291b5988017165a1f2287d9 (diff) |
updated for version 7.1b
Diffstat (limited to 'runtime/autoload')
-rw-r--r-- | runtime/autoload/spellfile.vim | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/runtime/autoload/spellfile.vim b/runtime/autoload/spellfile.vim index 6fedac1902..b9e17f1f14 100644 --- a/runtime/autoload/spellfile.vim +++ b/runtime/autoload/spellfile.vim @@ -1,6 +1,6 @@ " Vim script to download a missing spell file " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2007 May 06 +" Last Change: 2007 May 08 if !exists('g:spellfile_URL') let g:spellfile_URL = 'ftp://ftp.vim.org/pub/vim/runtime/spell' @@ -145,6 +145,12 @@ endfunc " Read "fname" from the server. function! spellfile#Nread(fname) + " We do our own error handling, don't want a window for it. + if exists("g:netrw_use_errorwindow") + let save_ew = g:netrw_use_errorwindow + endif + let g:netrw_use_errorwindow=0 + 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', '') @@ -153,4 +159,10 @@ function! spellfile#Nread(fname) else exe 'Nread ' g:spellfile_URL . '/' . a:fname endif + + if exists("save_ew") + let g:netrw_use_errorwindow = save_ew + else + unlet g:netrw_use_errorwindow + endif endfunc |