]> granicus.if.org Git - vim/commitdiff
updated for version 7.0161
authorBram Moolenaar <Bram@vim.org>
Mon, 28 Nov 2005 22:58:23 +0000 (22:58 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 28 Nov 2005 22:58:23 +0000 (22:58 +0000)
runtime/doc/pi_tar.txt [new file with mode: 0644]
runtime/doc/pi_zip.txt [new file with mode: 0644]
src/fileio.c

diff --git a/runtime/doc/pi_tar.txt b/runtime/doc/pi_tar.txt
new file mode 100644 (file)
index 0000000..3b4bb54
--- /dev/null
@@ -0,0 +1,38 @@
+*tar.txt*      Tar File Interface                              Nov 22, 2005
+
+Author:  Charles E. Campbell, Jr.  <NdrOchip@ScampbellPfamily.AbizM>
+         (remove NOSPAM from Campbell's email first)
+Copyright: The GPL (gnu public license) applies to     *tar-copyright*
+          tarPlugin.vim, and tar.txt.
+          No warranty, express or implied.  Use At-Your-Own-Risk.
+
+==============================================================================
+1. Contents                                    *tar* *tar-contents*
+   1. Contents..................................................|tar-contents|
+   2. Usage.....................................................|tar-usage|
+   3. History...................................................|tar-history|
+
+==============================================================================
+2. Usage                                       *tar-usage* *tar-manual*
+
+   When one edits a *.tar file, this plugin will handle displaying a
+   contents page.  Select a file to edit by moving the cursor atop
+   the desired file, then hit the <return> key.  After editing, one may
+   also write to the file.  Currently, one may not make a new file in
+   tar archives via the plugin.
+
+==============================================================================
+3. History                                             *tar-history*
+   v5 Nov 22, 2005 * report option workaround installed
+   v3 Sep 16, 2005 * handles writing files in an archive back to the
+                     archive
+      Oct 18, 2005 * <amatch> used instead of <afile> in autocmds
+      Oct 18, 2005 * handles writing to compressed archives
+      Nov 03, 2005 * handles writing tarfiles across a network using
+                     netrw#NetWrite()
+   v2              * converted to use Vim7's new autoload feature by
+                     Bram Moolenaar
+   v1 (original)   * Michael Toren (see http://michael.toren.net/code/)
+
+==============================================================================
+vim:tw=78:ts=8:ft=help
diff --git a/runtime/doc/pi_zip.txt b/runtime/doc/pi_zip.txt
new file mode 100644 (file)
index 0000000..1358a11
--- /dev/null
@@ -0,0 +1,41 @@
+*zip.txt*      Zip File Interface                              Nov 22, 2005
+
+Author:  Charles E. Campbell, Jr.  <NdrOchip@ScampbellPfamily.AbizM>
+         (remove NOSPAM from Campbell's email first)
+Copyright:    Copyright (C) 2005 Charles E. Campbell, Jr. {{{1 *zip-copyright*
+              Permission is hereby granted to use and distribute this code,
+             with or without modifications, provided that this copyright
+             notice is copied with it. Like anything else that's free,
+             zip.vim and zipPlugin.vim are provided *as is* and comes with no
+             warranty of any kind, either expressed or implied. By using this
+             plugin, you agree that in no event will the copyright holder be
+             liable for any damages resulting from the use of this software.
+
+==============================================================================
+1. Contents                                    *zip* *zip-contents*
+   1. Contents..................................................|zip-contents|
+   2. Usage.....................................................|zip-usage|
+   3. History...................................................|zip-history|
+
+==============================================================================
+2. Usage                                       *zip-usage* *zip-manual*
+
+   When one edits a *.zip file, this plugin will handle displaying a
+   contents page.  Select a file to edit by moving the cursor atop
+   the desired file, then hit the <return> key.  After editing, one may
+   also write to the file.  Currently, one may not make a new file in
+   zip archives via the plugin.
+
+==============================================================================
+3. History                                     *zip-history*
+   v5 Nov 22, 2005 * report option workaround installed
+   v3 Oct 18, 2005 * <amatch> used instead of <afile> in autocmds
+   v2 Sep 16, 2005 * silenced some commands (avoiding hit-enter prompt)
+                   * began testing under Windows; works thus far
+                  * filetype detection fixed
+      Nov 03, 2005 * handles writing zipfiles across a network using
+                     netrw#NetWrite()
+   v1 Sep 15, 2005 * Initial release, had browsing, reading, and writing
+
+==============================================================================
+vim:tw=78:ts=8:ft=help
index a3ceb4b5d87b10c10cca7e7037e9ea76bbb2f388..302e93a5174cd140d6c2dcb6e4dbb856f8405bc0 100644 (file)
@@ -3150,8 +3150,10 @@ buf_write(buf, fname, sfname, start, end, eap, append, forceit,
                            || st.st_mode != perm)
                        backup_copy = TRUE;
 # endif
-                   mch_remove(IObuff);
+                   /* Close the file before removing it, on MS-Windows we
+                    * can't delete an open file. */
                    close(fd);
+                   mch_remove(IObuff);
                }
            }
        }