aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload/zip.vim
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-04-23 15:22:55 +0200
committerGitHub <noreply@github.com>2023-04-23 15:22:55 +0200
commite3f36377c156749bbdafc46d8a8cd017f378b4b5 (patch)
treeacaaab31bc9e0bdaddc5765aa0b7d1acd11fbecf /runtime/autoload/zip.vim
parentf17bb4f41102ecec7989bc4c14c626dc595e2f0b (diff)
downloadrneovim-e3f36377c156749bbdafc46d8a8cd017f378b4b5.tar.gz
rneovim-e3f36377c156749bbdafc46d8a8cd017f378b4b5.tar.bz2
rneovim-e3f36377c156749bbdafc46d8a8cd017f378b4b5.zip
vim-patch:71badf9547e8 (#23285)
Update runtime files https://github.com/vim/vim/commit/71badf9547e8f89571b9a095183671cbb333d528 Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'runtime/autoload/zip.vim')
-rw-r--r--runtime/autoload/zip.vim12
1 files changed, 8 insertions, 4 deletions
diff --git a/runtime/autoload/zip.vim b/runtime/autoload/zip.vim
index bc9b62ddb0..8dda30c418 100644
--- a/runtime/autoload/zip.vim
+++ b/runtime/autoload/zip.vim
@@ -1,7 +1,7 @@
" zip.vim: Handles browsing zipfiles
" AUTOLOAD PORTION
-" Date: Nov 08, 2021
-" Version: 32
+" Date: Mar 12, 2023
+" Version: 33
" Maintainer: Charles E Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
" License: Vim License (see vim's :help license)
" Copyright: Copyright (C) 2005-2019 Charles E. Campbell {{{1
@@ -20,7 +20,7 @@
if &cp || exists("g:loaded_zip")
finish
endif
-let g:loaded_zip= "v32"
+let g:loaded_zip= "v33"
if v:version < 702
echohl WarningMsg
echo "***warning*** this version of zip needs vim 7.2 or later"
@@ -160,10 +160,14 @@ endfun
" ---------------------------------------------------------------------
" ZipBrowseSelect: {{{2
fun! s:ZipBrowseSelect()
-" call Dfunc("ZipBrowseSelect() zipfile<".b:zipfile."> curfile<".expand("%").">")
+ " call Dfunc("ZipBrowseSelect() zipfile<".((exists("b:zipfile"))? b:zipfile : "n/a")."> curfile<".expand("%").">")
let repkeep= &report
set report=10
let fname= getline(".")
+ if !exists("b:zipfile")
+" call Dret("ZipBrowseSelect : b:zipfile doesn't exist!")
+ return
+ endif
" sanity check
if fname =~ '^"'