diff options
author | Florian Walch <florian@fwalch.com> | 2015-05-18 18:30:10 +0300 |
---|---|---|
committer | Florian Walch <florian@fwalch.com> | 2015-05-19 12:44:56 +0300 |
commit | 90fae3663f543e9573c4e69380cfcdcbc7bb34fc (patch) | |
tree | 5d4afe1d52a3ce18c0f8a9ffbfc5dc0891f2246b /runtime/autoload/gzip.vim | |
parent | 73137e0a84d73196db1a8d66a45210f7ffb6632d (diff) | |
download | rneovim-90fae3663f543e9573c4e69380cfcdcbc7bb34fc.tar.gz rneovim-90fae3663f543e9573c4e69380cfcdcbc7bb34fc.tar.bz2 rneovim-90fae3663f543e9573c4e69380cfcdcbc7bb34fc.zip |
vim-patch:4abac79 #2694
Update runtime files.
https://code.google.com/p/vim/source/detail?r=4abac79c0b7ae7aac0cb32d9930e155de628b63f
Diffstat (limited to 'runtime/autoload/gzip.vim')
-rw-r--r-- | runtime/autoload/gzip.vim | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/autoload/gzip.vim b/runtime/autoload/gzip.vim index 1245fdddc9..a6b4605b06 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 @@ fun gzip#read(cmd) 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 @@ endfun " 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) |