Mercurial > vim
comparison runtime/autoload/zip.vim @ 32294:b2e8663e6dcc
Update runtime files
Commit: https://github.com/vim/vim/commit/71badf9547e8f89571b9a095183671cbb333d528
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 22 22:40:14 2023 +0100
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 22 Apr 2023 23:45:05 +0200 |
parents | 624439a39432 |
children | 828bcb1a37e7 |
comparison
equal
deleted
inserted
replaced
32293:6f7c948e5b15 | 32294:b2e8663e6dcc |
---|---|
1 " zip.vim: Handles browsing zipfiles | 1 " zip.vim: Handles browsing zipfiles |
2 " AUTOLOAD PORTION | 2 " AUTOLOAD PORTION |
3 " Date: Nov 08, 2021 | 3 " Date: Mar 12, 2023 |
4 " Version: 32 | 4 " Version: 33 |
5 " Maintainer: Charles E Campbell <NcampObell@SdrPchip.AorgM-NOSPAM> | 5 " Maintainer: Charles E Campbell <NcampObell@SdrPchip.AorgM-NOSPAM> |
6 " License: Vim License (see vim's :help license) | 6 " License: Vim License (see vim's :help license) |
7 " Copyright: Copyright (C) 2005-2019 Charles E. Campbell {{{1 | 7 " Copyright: Copyright (C) 2005-2019 Charles E. Campbell {{{1 |
8 " Permission is hereby granted to use and distribute this code, | 8 " Permission is hereby granted to use and distribute this code, |
9 " with or without modifications, provided that this copyright | 9 " with or without modifications, provided that this copyright |
18 " --------------------------------------------------------------------- | 18 " --------------------------------------------------------------------- |
19 " Load Once: {{{1 | 19 " Load Once: {{{1 |
20 if &cp || exists("g:loaded_zip") | 20 if &cp || exists("g:loaded_zip") |
21 finish | 21 finish |
22 endif | 22 endif |
23 let g:loaded_zip= "v32" | 23 let g:loaded_zip= "v33" |
24 if v:version < 702 | 24 if v:version < 702 |
25 echohl WarningMsg | 25 echohl WarningMsg |
26 echo "***warning*** this version of zip needs vim 7.2 or later" | 26 echo "***warning*** this version of zip needs vim 7.2 or later" |
27 echohl Normal | 27 echohl Normal |
28 finish | 28 finish |
158 endfun | 158 endfun |
159 | 159 |
160 " --------------------------------------------------------------------- | 160 " --------------------------------------------------------------------- |
161 " ZipBrowseSelect: {{{2 | 161 " ZipBrowseSelect: {{{2 |
162 fun! s:ZipBrowseSelect() | 162 fun! s:ZipBrowseSelect() |
163 " call Dfunc("ZipBrowseSelect() zipfile<".b:zipfile."> curfile<".expand("%").">") | 163 " call Dfunc("ZipBrowseSelect() zipfile<".((exists("b:zipfile"))? b:zipfile : "n/a")."> curfile<".expand("%").">") |
164 let repkeep= &report | 164 let repkeep= &report |
165 set report=10 | 165 set report=10 |
166 let fname= getline(".") | 166 let fname= getline(".") |
167 if !exists("b:zipfile") | |
168 " call Dret("ZipBrowseSelect : b:zipfile doesn't exist!") | |
169 return | |
170 endif | |
167 | 171 |
168 " sanity check | 172 " sanity check |
169 if fname =~ '^"' | 173 if fname =~ '^"' |
170 let &report= repkeep | 174 let &report= repkeep |
171 " call Dret("ZipBrowseSelect") | 175 " call Dret("ZipBrowseSelect") |