To: vim-dev@vim.org Subject: Patch 6.1.205 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.205 Problem: The gzip plugin changes the alternate file when editing a compressed file. (Oliver Fuchs) Solution: Temporarily remove the 'a' and 'A' flags from 'cpo'. Files: runtime/plugin/gzip.vim *** ../vim61.204/runtime/plugin/gzip.vim Thu Aug 22 20:30:17 2002 --- runtime/plugin/gzip.vim Tue Oct 1 19:28:58 2002 *************** *** 1,6 **** " Vim plugin for editing compressed files. " Maintainer: Bram Moolenaar ! " Last Change: 2002 Aug 21 " Exit quickly when: " - this plugin was already loaded --- 1,6 ---- " Vim plugin for editing compressed files. " Maintainer: Bram Moolenaar ! " Last Change: 2002 Oct 01 " Exit quickly when: " - this plugin was already loaded *************** *** 57,62 **** --- 57,65 ---- " make 'patchmode' empty, we don't want a copy of the written file let pm_save = &pm set pm= + " remove 'a' and 'A' from 'cpo' to avoid the alternate file changes + let cpo_save = &cpo + set cpo-=a cpo-=A " set 'modifiable' let ma_save = &ma setlocal ma *************** *** 84,89 **** --- 87,93 ---- silent! exe "bwipe " . tmp silent! exe "bwipe " . tmpe let &pm = pm_save + let &cpo = cpo_save let &l:ma = ma_save " When uncompressed the whole buffer, do autocommands if empty *** ../vim61.204/src/version.c Mon Sep 30 22:29:09 2002 --- src/version.c Tue Oct 1 19:31:09 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 205, /**/ -- Momento mori, ergo carpe diem /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.vim.org \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///