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 / unreleased / patches / 6.0ax.002 < prev    next >
Encoding:
Internet Message Format  |  2001-09-19  |  2.1 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0ax.002
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 6.0ax.002
  8. Problem:    When 'patchmode' is set, appending to a compressed file gives an
  9.         uncompressed original file. (Ed Ralston)
  10. Solution:   Create the original file before decompressing.
  11. Files:        runtime/plugin/gzip.vim
  12.  
  13.  
  14. *** ../vim60ax.1/runtime/plugin/gzip.vim    Tue Sep 11 10:20:05 2001
  15. --- runtime/plugin/gzip.vim    Thu Sep 20 19:57:29 2001
  16. ***************
  17. *** 1,6 ****
  18.   " Vim plugin for editing compressed files.
  19.   " Maintainer: Bram Moolenaar <Bram@vim.org>
  20. ! " Last Change: 2001 Sep 11
  21.   
  22.   " Exit quickly when:
  23.   " - this plugin was already loaded
  24. --- 1,6 ----
  25.   " Vim plugin for editing compressed files.
  26.   " Maintainer: Bram Moolenaar <Bram@vim.org>
  27. ! " Last Change: 2001 Sep 20
  28.   
  29.   " Exit quickly when:
  30.   " - this plugin was already loaded
  31. ***************
  32. *** 113,119 ****
  33.       let nmt = expand("<afile>:p:h") . "/X~=@l9q5"
  34.       let nmte = nmt . "." . expand("<afile>:e")
  35.       if rename(nm, nmte) == 0
  36. !       call system(a:cmd . " " . nmte)
  37.         call rename(nmt, nm)
  38.       endif
  39.     endif
  40. --- 113,125 ----
  41.       let nmt = expand("<afile>:p:h") . "/X~=@l9q5"
  42.       let nmte = nmt . "." . expand("<afile>:e")
  43.       if rename(nm, nmte) == 0
  44. !       if &patchmode != "" && getfsize(nm . &patchmode) == -1
  45. !     " Create patchmode file by creating the decompressed file new
  46. !     call system(a:cmd . " -c " . nmte . " > " . nmt)
  47. !     call rename(nmte, nm . &patchmode)
  48. !       else
  49. !     call system(a:cmd . " " . nmte)
  50. !       endif
  51.         call rename(nmt, nm)
  52.       endif
  53.     endif
  54. *** ../vim60ax.1/src/version.c    Thu Sep 20 22:44:59 2001
  55. --- src/version.c    Thu Sep 20 22:44:37 2001
  56. ***************
  57. *** 608,609 ****
  58. --- 608,611 ----
  59.   {   /* Add new patch number below this line */
  60. + /**/
  61. +     2,
  62.   /**/
  63.  
  64. -- 
  65. Vi beats Emacs to death, and then again!
  66.             http://linuxtoday.com/stories/5764.html
  67.  
  68.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  69. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  70.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  71.