updated for version 7.0064

This commit is contained in:
Bram Moolenaar
2005-03-25 21:58:17 +00:00
parent 68b76a69aa
commit 2641f77fbc
10 changed files with 140 additions and 59 deletions

View File

@ -1,6 +1,6 @@
" Vim plugin for editing compressed files.
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2004 Jul 30
" Last Change: 2005 Mar 24
" Exit quickly when:
" - this plugin was already loaded
@ -118,7 +118,7 @@ fun s:write(cmd)
" don't do anything if the cmd is not supported
if s:check(a:cmd)
" Rename the file before compressing it.
let nm = expand("<afile>")
let nm = resolve(expand("<afile>"))
let nmt = s:tempname(nm)
if rename(nm, nmt) == 0
call system(a:cmd . " " . nmt)