1
0
forked from aniani/vim
Christian Brabandt 1c67342912
runtime(zip): MS-Windows: handle files with spaces properly
This change does the following 3 things:

1) non need to quote the file to be extracted

The zipfile plugin used to quote and fnameescape() the path to the
file to be extracted. However testing with unzip showed, that while this
works on Linux on Windows you shall not escape the blanks in filenames.

As long as the pathname is properly quoted, this words on Linux and
Windows.

2) reset shellslash (MS-Windows only)

When shellslash is set, filenames to the zip archive will be forward
quoted. However since the filename is eventually handed over to the
unzip command, we need to make sure to use native paths so that the
command will understand what file to open. Therefore, if shellslash is
set (and the shell is cmd.exe), replace any forward slashes by the
expected backslashes

3) style:
Use tabs for the Header, remove a few comments in the s:Escape() and
zip#read() functions

fixes: #14998

Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-06-15 14:51:07 +02:00
..
2008-06-24 22:58:06 +00:00
2021-09-09 21:55:11 +02:00
2021-09-09 21:55:11 +02:00
2022-07-25 15:42:07 +01:00
2022-03-30 10:51:39 +01:00
2016-10-23 21:21:08 +02:00
2021-09-21 20:09:51 +02:00
2021-09-09 21:55:11 +02:00
2022-07-01 18:45:04 +01:00
2010-01-06 20:54:52 +01:00
2021-09-09 21:55:11 +02:00
2021-09-09 21:55:11 +02:00
2019-11-10 22:09:11 +01:00
2022-03-30 10:51:39 +01:00
2023-02-27 15:49:53 +00:00
2021-09-09 21:55:11 +02:00
2006-04-15 20:16:09 +00:00
2019-01-01 15:32:17 +01:00
2023-10-16 09:53:37 +02:00
2021-09-09 21:55:11 +02:00
2021-05-02 17:19:11 +02:00
2023-10-16 09:53:37 +02:00
2021-09-09 21:55:11 +02:00
2020-03-01 19:06:45 +01:00

The autoload directory is for standard Vim autoload scripts.

These are functions used by plugins and for general use.  They will be loaded
automatically when the function is invoked.  See ":help autoload".

gzip.vim	for editing compressed files
netrw*.vim	browsing (remote) directories and editing remote files
tar.vim		browsing tar files
zip.vim		browsing zip files
paste.vim	common code for mswin.vim, menu.vim and macmap.vim
spellfile.vim	downloading of a missing spell file

Omni completion files:
ccomplete.vim		C
csscomplete.vim		HTML / CSS
htmlcomplete.vim	HTML
javascriptcomplete.vim  Javascript
phpcomplete.vim		PHP
pythoncomplete.vim	Python
rubycomplete.vim	Ruby
syntaxcomplete.vim	from syntax highlighting
xmlcomplete.vim		XML (uses files in the xml directory)