gzip.vim bugfix

jamessan@jamessan.com jamessan@jamessan.com
Wed, 23 Mar 2005 06:49:42 -0500


--uXxzq0nDebZQVNAZ
Content-Type: multipart/mixed; boundary="24zk1gE8NUlDmwG9"
Content-Disposition: inline


--24zk1gE8NUlDmwG9
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Mar 23, 2005 at 10:35:28AM +0100, Bram Moolenaar wrote:
>=20
> James -
>=20
> > I'm a member of the maintainer group for Debian's Vim package.  Attached
> > is a patch for $VIMRUNTIME/plugin/gzip.vim to address the bug reported
> > in <http://bugs.debian.org/281630>.
>=20
> No attachment...

Sorry about that.  It was late.  :)  Here's the patch.

James
--=20
GPG Key: 1024D/61326D40 2003-09-02 James Vega <jamessan@jamessan.com>

--24zk1gE8NUlDmwG9
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename="115_gzip.vim.diff"

diff -ur vim63.orig/runtime/plugin/gzip.vim vim63/runtime/plugin/gzip.vim
--- vim63.orig/runtime/plugin/gzip.vim	2004-01-12 11:39:39.000000000 -0500
+++ vim63/runtime/plugin/gzip.vim	2005-03-22 22:31:09.196143840 -0500
@@ -113,7 +113,7 @@
   " 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)

--24zk1gE8NUlDmwG9--

--uXxzq0nDebZQVNAZ
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iEYEARECAAYFAkJBV9YACgkQDb3UpmEybUC+MACfX7IZC+6gKtXSty9pAzNbUPA8
BNgAn1n0JX1jQa1PwyeH6nnZOl1p0bpZ
=El9o
-----END PGP SIGNATURE-----

--uXxzq0nDebZQVNAZ--