Skip to content

Commit 8ac975d

Browse files
committed
runtime(tar): fix syntax error in tar.vim
Signed-off-by: Christian Brabandt <[email protected]>
1 parent 1a741d3 commit 8ac975d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

runtime/autoload/tar.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
" tar.vim: Handles browsing tarfiles - AUTOLOAD PORTION
2-
" Date: Feb 28, 2025
2+
" Date: Mar 01, 2025
33
" Version: 32b (with modifications from the Vim Project)
44
" Maintainer: This runtime file is looking for a new maintainer.
55
" Former Maintainer: Charles E Campbell
@@ -10,6 +10,7 @@
1010
" 2024 Nov 11 by Vim Project: support permissions (#7379)
1111
" 2025 Feb 06 by Vim Project: add support for lz4 (#16591)
1212
" 2025 Feb 28 by Vim Project: add support for bzip3 (#16755)
13+
" 2025 Mar 01 by Vim Project: fix syntax error in tar#Read()
1314
"
1415
" Contains many ideas from Michael Toren's <tar.vim>
1516
"
@@ -361,7 +362,7 @@ fun! tar#Read(fname,mode)
361362
if tarfile =~# '\.bz2$'
362363
exe "sil! r! bzip2 -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
363364
exe "read ".fname
364-
if tarfile =~# '\.bz3$'
365+
elseif tarfile =~# '\.bz3$'
365366
exe "sil! r! bzip3 -d -c -- ".shellescape(tarfile,1)."| ".g:tar_cmd." -".g:tar_readoptions." - ".tar_secure.shellescape(fname,1).decmp
366367
exe "read ".fname
367368
elseif tarfile =~# '\.\(gz\)$'

0 commit comments

Comments
 (0)