To: vim-dev@vim.org Subject: Patch 6.1.160 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.160 Problem: ":$read file.gz" doesn't work. (Preben Guldberg) Solution: Don't use the '[ mark after it has become invalid. Files: runtime/plugin/gzip.vim *** ../vim61.159/runtime/plugin/gzip.vim Mon May 6 22:21:01 2002 --- runtime/plugin/gzip.vim Wed Aug 21 21:20:04 2002 *************** *** 1,6 **** " Vim plugin for editing compressed files. " Maintainer: Bram Moolenaar ! " Last Change: 2002 May 06 " Exit quickly when: " - this plugin was already loaded --- 1,6 ---- " Vim plugin for editing compressed files. " Maintainer: Bram Moolenaar ! " Last Change: 2002 Aug 21 " Exit quickly when: " - this plugin was already loaded *************** *** 68,78 **** execute "silent '[,']w " . tmpe " uncompress the temp file: call system("gzip -d tmp.gz") call system(a:cmd . " " . tmpe) ! " delete the compressed lines '[,']d " read in the uncompressed lines "'[-1r tmp" setlocal nobin ! execute "silent '[-1r " . tmp " if buffer became empty, delete trailing blank line if empty silent $delete --- 68,79 ---- execute "silent '[,']w " . tmpe " uncompress the temp file: call system("gzip -d tmp.gz") call system(a:cmd . " " . tmpe) ! " delete the compressed lines; remember the line number ! let l = line("'[") - 1 '[,']d " read in the uncompressed lines "'[-1r tmp" setlocal nobin ! execute "silent " . l . "r " . tmp " if buffer became empty, delete trailing blank line if empty silent $delete *** ../vim61.159/src/version.c Sun Aug 18 21:27:29 2002 --- src/version.c Thu Aug 22 20:22:48 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 160, /**/ -- In war we're tough and able. Quite indefatigable Between our quests We sequin vests And impersonate Clark Gable It's a busy life in Camelot. I have to push the pram a lot. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///