I did a little change in the plugin that handles the gzip files by
verifying if the file was not successful uncompressed it wouldn't compress
the file when closing it.  This change was made in order to fix the issue
276 in issue list.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/runtime/autoload/gzip.vim b/runtime/autoload/gzip.vim
--- a/runtime/autoload/gzip.vim
+++ b/runtime/autoload/gzip.vim
@@ -121,6 +121,10 @@
     silent! exe "bwipe " . tmpe_esc
   endif
 
+  " Set a global variable b:couldUncompFile to store if the fun gzip#read
+  " was able to uncompress the file
+  let b:couldUncompFile = ok
+
   " Restore saved option values.
   let &pm = pm_save
   let &cpo = cpo_save
@@ -146,8 +150,9 @@
 
 " After writing compressed file: Compress written file with "cmd"
 fun gzip#write(cmd)
-  " don't do anything if the cmd is not supported
-  if s:check(a:cmd)
+  " don't do anything if the cmd is not supported 
+  " or if the fun gzip#read couldn't uncompress the file
+  if s:check(a:cmd) && b:couldUncompFile
     " Rename the file before compressing it.
     let nm = resolve(expand("<afile>"))
     let nmt = s:tempname(nm)

Raspunde prin e-mail lui