Mercurial > vim
annotate runtime/plugin/zipPlugin.vim @ 26458:824fe105f5b9 v8.2.3759
patch 8.2.3759: quickfix buffer becomes hidden while still in a window
Commit: https://github.com/vim/vim/commit/78a61068cf2c83e611d954a0fb413a09ad59dc07
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Wed Dec 8 20:03:31 2021 +0000
patch 8.2.3759: quickfix buffer becomes hidden while still in a window
Problem: Quickfix buffer becomes hidden while still in a window.
Solution: Check if the closed window is the last window showing the quickfix
buffer. (Yegappan Lakshmanan, closes #9303, closes #9300)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 08 Dec 2021 21:15:03 +0100 |
parents | 624439a39432 |
children | b2e8663e6dcc |
rev | line source |
---|---|
529 | 1 " zipPlugin.vim: Handles browsing zipfiles |
2 " PLUGIN PORTION | |
19099 | 3 " Date: Jan 07, 2020 |
4 " Maintainer: Charles E Campbell <NcampObell@SdrPchip.AorgM-NOSPAM> | |
529 | 5 " License: Vim License (see vim's :help license) |
10211
b7da8d4c594c
commit https://github.com/vim/vim/commit/d07969093a9b3051511c478d71c36de6fc33c0d6
Christian Brabandt <cb@256bit.org>
parents:
5130
diff
changeset
|
6 " Copyright: Copyright (C) 2005-2016 Charles E. Campbell {{{1 |
529 | 7 " Permission is hereby granted to use and distribute this code, |
8 " with or without modifications, provided that this copyright | |
9 " notice is copied with it. Like anything else that's free, | |
10 " zipPlugin.vim is provided *as is* and comes with no warranty | |
11 " of any kind, either expressed or implied. By using this | |
12 " plugin, you agree that in no event will the copyright | |
13 " holder be liable for any damages resulting from the use | |
14 " of this software. | |
1121 | 15 " |
16 " (James 4:8 WEB) Draw near to God, and he will draw near to you. | |
17 " Cleanse your hands, you sinners; and purify your hearts, you double-minded. | |
529 | 18 " --------------------------------------------------------------------- |
1121 | 19 " Load Once: {{{1 |
20 if &cp || exists("g:loaded_zipPlugin") | |
21 finish | |
22 endif | |
26148 | 23 let g:loaded_zipPlugin = "v32" |
1121 | 24 let s:keepcpo = &cpo |
529 | 25 set cpo&vim |
26 | |
27 " --------------------------------------------------------------------- | |
5130
71e066e10a47
updated for version 7.3.1308
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
28 " Options: {{{1 |
71e066e10a47
updated for version 7.3.1308
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
29 if !exists("g:zipPlugin_ext") |
22723 | 30 let g:zipPlugin_ext='*.aar,*.apk,*.celzip,*.crtx,*.docm,*.docx,*.dotm,*.dotx,*.ear,*.epub,*.gcsx,*.glox,*.gqsx,*.ja,*.jar,*.kmz,*.odb,*.odc,*.odf,*.odg,*.odi,*.odm,*.odp,*.ods,*.odt,*.otc,*.otf,*.otg,*.oth,*.oti,*.otp,*.ots,*.ott,*.oxt,*.potm,*.potx,*.ppam,*.ppsm,*.ppsx,*.pptm,*.pptx,*.sldx,*.thmx,*.vdw,*.war,*.wsz,*.xap,*.xlam,*.xlam,*.xlsb,*.xlsm,*.xlsx,*.xltm,*.xltx,*.xpi,*.zip' |
5130
71e066e10a47
updated for version 7.3.1308
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
31 endif |
71e066e10a47
updated for version 7.3.1308
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
32 |
71e066e10a47
updated for version 7.3.1308
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
33 " --------------------------------------------------------------------- |
529 | 34 " Public Interface: {{{1 |
35 augroup zip | |
36 au! | |
557 | 37 au BufReadCmd zipfile:* call zip#Read(expand("<amatch>"), 1) |
38 au FileReadCmd zipfile:* call zip#Read(expand("<amatch>"), 0) | |
39 au BufWriteCmd zipfile:* call zip#Write(expand("<amatch>")) | |
40 au FileWriteCmd zipfile:* call zip#Write(expand("<amatch>")) | |
529 | 41 |
42 if has("unix") | |
557 | 43 au BufReadCmd zipfile:*/* call zip#Read(expand("<amatch>"), 1) |
44 au FileReadCmd zipfile:*/* call zip#Read(expand("<amatch>"), 0) | |
45 au BufWriteCmd zipfile:*/* call zip#Write(expand("<amatch>")) | |
46 au FileWriteCmd zipfile:*/* call zip#Write(expand("<amatch>")) | |
529 | 47 endif |
48 | |
5130
71e066e10a47
updated for version 7.3.1308
Bram Moolenaar <bram@vim.org>
parents:
4339
diff
changeset
|
49 exe "au BufReadCmd ".g:zipPlugin_ext.' call zip#Browse(expand("<amatch>"))' |
529 | 50 augroup END |
51 | |
1121 | 52 " --------------------------------------------------------------------- |
53 " Restoration And Modelines: {{{1 | |
54 " vim: fdm=marker | |
529 | 55 let &cpo= s:keepcpo |
56 unlet s:keepcpo |