Mercurial > vim
annotate runtime/ftplugin/aap.vim @ 34372:d8c69a773456 v9.1.0115
patch 9.1.0115: Using freed memory with full tag stack and user data
Commit: https://github.com/vim/vim/commit/c86bff1771ed9c340f8f4433ae5530fd6de97980
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun Feb 18 18:53:08 2024 +0100
patch 9.1.0115: Using freed memory with full tag stack and user data
Problem: Using freed memory with full tag stack and user data
(Konstantin Khlebnikov)
Solution: Clear the user data pointer of the newest entry.
(zeertzjq, Konstantin Khlebnikov)
fixes: neovim/neovim#27498
closes: #14053
Co-authored-by: Konstantin Khlebnikov koct9i@gmail.com
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Konstantin Khlebnikov koct9i@gmail.com
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 18 Feb 2024 19:00:03 +0100 |
parents | 8ae680be2a51 |
children |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file |
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> |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
32770
diff
changeset
|
4 " Last Change: 2024 Jan 14 |
32770
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 | 6 |
7 " Only do this when not done yet for this buffer | |
8 if exists("b:did_ftplugin") | |
9 finish | |
10 endif | |
11 | |
12 " Don't load another plugin for this buffer | |
13 let b:did_ftplugin = 1 | |
14 | |
26148 | 15 " Reset 'formatoptions', 'comments', 'commentstring' and 'expandtab' to undo |
16 " this plugin. | |
17 let b:undo_ftplugin = "setl fo< com< cms< et<" | |
7 | 18 |
19 " Set 'formatoptions' to break comment lines but not other lines, | |
20 " and insert the comment leader when hitting <CR> or using "o". | |
21 setlocal fo-=t fo+=croql | |
22 | |
23 " Set 'comments' to format dashed lists in comments. | |
4264 | 24 setlocal comments=s:#\ -,m:#\ \ ,e:#,n:#,fb:- |
26148 | 25 setlocal commentstring=#\ %s |
7 | 26 |
27 " Expand tabs to spaces to avoid trouble. | |
28 setlocal expandtab | |
26148 | 29 |
30 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") | |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
32770
diff
changeset
|
31 let b:browsefilter = "Aap Recipe Files (*.aap)\t*.aap\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
32770
diff
changeset
|
32 if has("win32") |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
32770
diff
changeset
|
33 let b:browsefilter ..= "All Files (*.*)\t*\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
32770
diff
changeset
|
34 else |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
32770
diff
changeset
|
35 let b:browsefilter ..= "All Files (*)\t*\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
32770
diff
changeset
|
36 endif |
26148 | 37 let b:undo_ftplugin ..= " | unlet! b:browsefilter" |
38 endif |