annotate runtime/ftplugof.vim @ 33488:0081ca43bee9 v9.0.1995

patch 9.0.1995: Invalid memory access with empty 'foldexpr' Commit: https://github.com/vim/vim/commit/a991ce9c083bb8c02b1b1ec34ed35728197050f3 Author: zeertzjq <zeertzjq@outlook.com> Date: Fri Oct 6 19:16:36 2023 +0200 patch 9.0.1995: Invalid memory access with empty 'foldexpr' Problem: Invalid memory access when 'foldexpr' returns empty string. Solution: Check for NUL. closes: #13293 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
author Christian Brabandt <cb@256bit.org>
date Fri, 06 Oct 2023 19:30:07 +0200
parents 4027cefc2aab
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
27623
179c118424a6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3139
diff changeset
1 vim9script
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
27623
179c118424a6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3139
diff changeset
3 # Vim support file to switch off loading plugins for file types
179c118424a6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3139
diff changeset
4 #
32770
4027cefc2aab Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents: 27623
diff changeset
5 # 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: 27623
diff changeset
6 # Last Change: 2023 Aug 10
4027cefc2aab Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents: 27623
diff changeset
7 # Former Maintainer: Bram Moolenaar <Bram@vim.org>
27623
179c118424a6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3139
diff changeset
8
179c118424a6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3139
diff changeset
9 if exists("g:did_load_ftplugin")
179c118424a6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3139
diff changeset
10 unlet g:did_load_ftplugin
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
27623
179c118424a6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3139
diff changeset
13 # Remove all autocommands in the filetypeplugin group, if any exist.
3139
49b08c9b9f5b updated for version 7.3.340
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
14 if exists("#filetypeplugin")
49b08c9b9f5b updated for version 7.3.340
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
15 silent! au! filetypeplugin *
49b08c9b9f5b updated for version 7.3.340
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
16 endif