]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(zip): remove test for fnameescape
authorChristian Brabandt <cb@256bit.org>
Mon, 5 Aug 2024 18:52:50 +0000 (20:52 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 6 Aug 2024 18:03:22 +0000 (20:03 +0200)
Problem:  zip plugin tests for fnameescape() function
Solution: Remove the check, fnameescape() has been available since
          7.1.299, it should nowadays always be available

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/zip.vim

index d22e2e01411b6c93faf81e467dc92003e9c99905..cf7013518668085b75389d5b9d84d7c7a3a942d9 100644 (file)
@@ -87,12 +87,6 @@ fun! zip#Browse(zipfile)
   set report=10
 
   " sanity checks
-  if !exists("*fnameescape")
-   if &verbose > 1
-    echoerr "the zip plugin is not available (your vim doesn't support fnameescape())"
-   endif
-   return
-  endif
   if !executable(g:zip_unzipcmd)
    redraw!
    echohl Error | echomsg "***error*** (zip#Browse) unzip not available on your system"