0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-10-31 23:56:05 +00:00
Files
termux-packages/packages/vim/fix-writing-archive.patch
2025-08-08 12:01:52 +05:30

29 lines
854 B
Diff

diff --git a/runtime/autoload/tar.vim b/runtime/autoload/tar.vim
index 436e24eb6..ff2d30ff3 100644
--- a/runtime/autoload/tar.vim
+++ b/runtime/autoload/tar.vim
@@ -295,9 +295,6 @@ fun! tar#Read(fname)
let b:curdir= curdir
let tmpdir= tempname()
let b:tmpdir= tmpdir
- if tmpdir =~ '\.'
- let tmpdir= substitute(tmpdir,'\.[^.]*$','','e')
- endif
call mkdir(tmpdir,"p")
" attempt to change to the indicated directory
diff --git a/runtime/autoload/zip.vim b/runtime/autoload/zip.vim
index 4a53fc5f2..e2bd35064 100644
--- a/runtime/autoload/zip.vim
+++ b/runtime/autoload/zip.vim
@@ -248,9 +248,6 @@ fun! zip#Write(fname)
let curdir= getcwd()
let tmpdir= tempname()
- if tmpdir =~ '\.'
- let tmpdir= substitute(tmpdir,'\.[^.]*$','','e')
- endif
call mkdir(tmpdir,"p")
" attempt to change to the indicated directory