To:
[email protected]
Subject: Patch 6.0ax.002
Fcc: outbox
From: Bram Moolenaar <
[email protected]>
------------
Patch 6.0ax.002
Problem: When 'patchmode' is set, appending to a compressed file gives an
uncompressed original file. (Ed Ralston)
Solution: Create the original file before decompressing.
Files: runtime/plugin/gzip.vim
*** ../vim60ax.1/runtime/plugin/gzip.vim Tue Sep 11 10:20:05 2001
--- runtime/plugin/gzip.vim Thu Sep 20 19:57:29 2001
***************
*** 1,6 ****
" Vim plugin for editing compressed files.
" Maintainer: Bram Moolenaar <
[email protected]>
! " Last Change: 2001 Sep 11
" Exit quickly when:
" - this plugin was already loaded
--- 1,6 ----
" Vim plugin for editing compressed files.
" Maintainer: Bram Moolenaar <
[email protected]>
! " Last Change: 2001 Sep 20
" Exit quickly when:
" - this plugin was already loaded
***************
*** 113,119 ****
let nmt = expand("<afile>:p:h") . "/X~=@l9q5"
let nmte = nmt . "." . expand("<afile>:e")
if rename(nm, nmte) == 0
! call system(a:cmd . " " . nmte)
call rename(nmt, nm)
endif
endif
--- 113,125 ----
let nmt = expand("<afile>:p:h") . "/X~=@l9q5"
let nmte = nmt . "." . expand("<afile>:e")
if rename(nm, nmte) == 0
! if &patchmode != "" && getfsize(nm . &patchmode) == -1
! " Create patchmode file by creating the decompressed file new
! call system(a:cmd . " -c " . nmte . " > " . nmt)
! call rename(nmte, nm . &patchmode)
! else
! call system(a:cmd . " " . nmte)
! endif
call rename(nmt, nm)
endif
endif
*** ../vim60ax.1/src/version.c Thu Sep 20 22:44:59 2001
--- src/version.c Thu Sep 20 22:44:37 2001
***************
*** 608,609 ****
--- 608,611 ----
{ /* Add new patch number below this line */
+ /**/
+ 2,
/**/
--
Vi beats Emacs to death, and then again!
http://linuxtoday.com/stories/5764.html
/// Bram Moolenaar --
[email protected] --
http://www.moolenaar.net \\\
((( Creator of Vim --
http://vim.sf.net --
ftp://ftp.vim.org/pub/vim )))
\\\ Help me helping AIDS orphans in Uganda -
http://iccf-holland.org ///