aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta/options.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-06-16 05:51:30 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-06-16 05:51:53 +0800
commit6f1cbfc9ab483a09877e153ad130164875c40b1d (patch)
tree1859652cf0d02891db940e61b29006d037426231 /runtime/lua/vim/_meta/options.lua
parent203540926df0ac6faae02e35ad12ae0221e210f6 (diff)
downloadrneovim-6f1cbfc9ab483a09877e153ad130164875c40b1d.tar.gz
rneovim-6f1cbfc9ab483a09877e153ad130164875c40b1d.tar.bz2
rneovim-6f1cbfc9ab483a09877e153ad130164875c40b1d.zip
vim-patch:1c67342: 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: vim/vim#14998 https://github.com/vim/vim/commit/1c6734291295bf8aa39577840b40bb21a7f27120 Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/lua/vim/_meta/options.lua')
0 files changed, 0 insertions, 0 deletions