summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-11-28 22:58:23 +0000
committerBram Moolenaar <Bram@vim.org>2005-11-28 22:58:23 +0000
commit9835862c81a196afd0d5e23974f8e600aa661ffd (patch)
tree7ac193b620417a98e66b91fedc722551a23345b3
parenta39571032cbfab60c8e49829bbd40734b7c86e92 (diff)
downloadvim-git-9835862c81a196afd0d5e23974f8e600aa661ffd.tar.gz
updated for version 7.0161
-rw-r--r--runtime/doc/pi_tar.txt38
-rw-r--r--runtime/doc/pi_zip.txt41
-rw-r--r--src/fileio.c4
3 files changed, 82 insertions, 1 deletions
diff --git a/runtime/doc/pi_tar.txt b/runtime/doc/pi_tar.txt
new file mode 100644
index 000000000..3b4bb54b5
--- /dev/null
+++ b/runtime/doc/pi_tar.txt
@@ -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
index 000000000..1358a11b2
--- /dev/null
+++ b/runtime/doc/pi_zip.txt
@@ -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
diff --git a/src/fileio.c b/src/fileio.c
index a3ceb4b5d..302e93a51 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -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);
}
}
}