home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.1.160 < prev    next >
Encoding:
Internet Message Format  |  2002-11-04  |  2.5 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.160
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.1.160
  11. Problem:    ":$read file.gz" doesn't work. (Preben Guldberg)
  12. Solution:   Don't use the '[ mark after it has become invalid.
  13. Files:        runtime/plugin/gzip.vim
  14.  
  15.  
  16. *** ../vim61.159/runtime/plugin/gzip.vim    Mon May  6 22:21:01 2002
  17. --- runtime/plugin/gzip.vim    Wed Aug 21 21:20:04 2002
  18. ***************
  19. *** 1,6 ****
  20.   " Vim plugin for editing compressed files.
  21.   " Maintainer: Bram Moolenaar <Bram@vim.org>
  22. ! " Last Change: 2002 May 06
  23.   
  24.   " Exit quickly when:
  25.   " - this plugin was already loaded
  26. --- 1,6 ----
  27.   " Vim plugin for editing compressed files.
  28.   " Maintainer: Bram Moolenaar <Bram@vim.org>
  29. ! " Last Change: 2002 Aug 21
  30.   
  31.   " Exit quickly when:
  32.   " - this plugin was already loaded
  33. ***************
  34. *** 68,78 ****
  35.     execute "silent '[,']w " . tmpe
  36.     " uncompress the temp file: call system("gzip -d tmp.gz")
  37.     call system(a:cmd . " " . tmpe)
  38. !   " delete the compressed lines
  39.     '[,']d
  40.     " read in the uncompressed lines "'[-1r tmp"
  41.     setlocal nobin
  42. !   execute "silent '[-1r " . tmp
  43.     " if buffer became empty, delete trailing blank line
  44.     if empty
  45.       silent $delete
  46. --- 68,79 ----
  47.     execute "silent '[,']w " . tmpe
  48.     " uncompress the temp file: call system("gzip -d tmp.gz")
  49.     call system(a:cmd . " " . tmpe)
  50. !   " delete the compressed lines; remember the line number
  51. !   let l = line("'[") - 1
  52.     '[,']d
  53.     " read in the uncompressed lines "'[-1r tmp"
  54.     setlocal nobin
  55. !   execute "silent " . l . "r " . tmp
  56.     " if buffer became empty, delete trailing blank line
  57.     if empty
  58.       silent $delete
  59. *** ../vim61.159/src/version.c    Sun Aug 18 21:27:29 2002
  60. --- src/version.c    Thu Aug 22 20:22:48 2002
  61. ***************
  62. *** 608,609 ****
  63. --- 608,611 ----
  64.   {   /* Add new patch number below this line */
  65. + /**/
  66. +     160,
  67.   /**/
  68.  
  69. -- 
  70.        In war we're tough and able.
  71.        Quite indefatigable
  72.        Between our quests
  73.        We sequin vests
  74.        And impersonate Clark Gable
  75.        It's a busy life in Camelot.
  76.        I have to push the pram a lot.
  77.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  78.  
  79.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  80. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  81. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  82.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  83.