Update runtime files.
diff --git a/runtime/autoload/gzip.vim b/runtime/autoload/gzip.vim
index 1245fdd..a6b4605 100644
--- a/runtime/autoload/gzip.vim
+++ b/runtime/autoload/gzip.vim
@@ -1,6 +1,6 @@
" Vim autoload file for editing compressed files.
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2008 Jul 04
+" Last Change: 2014 Nov 05
" These functions are used by the gzip plugin.
@@ -120,6 +120,8 @@
silent! exe "bwipe " . tmp_esc
silent! exe "bwipe " . tmpe_esc
endif
+ " Store the OK flag, so that we can use it when writing.
+ let b:uncompressOk = ok
" Restore saved option values.
let &pm = pm_save
@@ -146,8 +148,10 @@
" After writing compressed file: Compress written file with "cmd"
fun gzip#write(cmd)
+ if exists('b:uncompressOk') && !b:uncompressOk
+ echomsg "Not compressing file because uncompress failed; reset b:uncompressOk to compress anyway"
" don't do anything if the cmd is not supported
- if s:check(a:cmd)
+ elseif s:check(a:cmd)
" Rename the file before compressing it.
let nm = resolve(expand("<afile>"))
let nmt = s:tempname(nm)