# HG changeset patch # User vimboss # Date 1133218703 0 # Node ID afd8e69dba191be812fcb7d5a6b9ecd2bf4994e6 # Parent bc4ba1b9a7610288218b19202e4e328f744ac407 updated for version 7.0161 diff --git a/runtime/doc/pi_tar.txt b/runtime/doc/pi_tar.txt new file mode 100644 --- /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. + (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 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 * used instead of 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 --- /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. + (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 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 * used instead of 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 --- a/src/fileio.c +++ b/src/fileio.c @@ -3150,8 +3150,10 @@ buf_write(buf, fname, sfname, start, end || st.st_mode != perm) backup_copy = TRUE; # endif + /* Close the file before removing it, on MS-Windows we + * can't delete an open file. */ + close(fd); mch_remove(IObuff); - close(fd); } } }