annotate runtime/ftplugin/aap.vim @ 33266:db6ecb403e75 v9.0.1901

patch 9.0.1901: win32: not correctly freeing environment Commit: https://github.com/vim/vim/commit/ad29f6af0a2edcd1c9e78d8defe86b2155937f7c Author: Ken Takata <kentkt@csc.jp> Date: Sat Sep 16 13:56:02 2023 +0200 patch 9.0.1901: win32: not correctly freeing environment Problem: win32: not correctly freeing environment Solution: After we call GetEnvironmentStringsW, we should call FreeEnvironmentStringsW closes: #13096 closes: #13094 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Ken Takata <kentkt@csc.jp>
author Christian Brabandt <cb@256bit.org>
date Sat, 16 Sep 2023 14:00:03 +0200
parents 4027cefc2aab
children 8ae680be2a51
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Aap recipe
32770
4027cefc2aab Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents: 26148
diff changeset
3 " Maintainer: The Vim Project <https://github.com/vim/vim>
4027cefc2aab Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents: 26148
diff changeset
4 " Last Change: 2023 Aug 10
4027cefc2aab Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents: 26148
diff changeset
5 " Former Maintainer: Bram Moolenaar <Bram@vim.org>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Only do this when not done yet for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if exists("b:did_ftplugin")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " Don't load another plugin for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
15 " Reset 'formatoptions', 'comments', 'commentstring' and 'expandtab' to undo
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
16 " this plugin.
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
17 let b:undo_ftplugin = "setl fo< com< cms< et<"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " Set 'formatoptions' to break comment lines but not other lines,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " and insert the comment leader when hitting <CR> or using "o".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 setlocal fo-=t fo+=croql
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " Set 'comments' to format dashed lists in comments.
4264
2d1383658bb4 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
24 setlocal comments=s:#\ -,m:#\ \ ,e:#,n:#,fb:-
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
25 setlocal commentstring=#\ %s
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " Expand tabs to spaces to avoid trouble.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 setlocal expandtab
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
29
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
30 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
31 let b:browsefilter = "Aap Recipe Files (*.aap)\t*.aap\nAll Files (*.*)\t*.*\n"
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
32 let b:undo_ftplugin ..= " | unlet! b:browsefilter"
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 4264
diff changeset
33 endif