annotate runtime/ftplugin/diff.vim @ 23473:ad83c0ff34c0 v8.2.2279

patch 8.2.2279: Vim9: memory leak with catch in skipped block Commit: https://github.com/vim/vim/commit/508b5618ec0bc6d1edff71e04d99280a2a51df9d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 2 18:17:26 2021 +0100 patch 8.2.2279: Vim9: memory leak with catch in skipped block Problem: Vim9: memory leak with catch in skipped block. Solution: Free the pattern if not used.
author Bram Moolenaar <Bram@vim.org>
date Sat, 02 Jan 2021 18:30:03 +0100
parents 3a1ed539ae2a
children 624439a39432
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
446
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
2 " Language: Diff
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
21499
3a1ed539ae2a Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 446
diff changeset
4 " Last Change: 2020 Jul 18
446
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
5
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
6 " Only do this when not done yet for this buffer
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
7 if exists("b:did_ftplugin")
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
8 finish
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
9 endif
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
10 let b:did_ftplugin = 1
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
11
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
12 let b:undo_ftplugin = "setl modeline<"
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
13
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
14 " Don't use modelines in a diff, they apply to the diffed file
7472c565592a updated for version 7.0117
vimboss
parents:
diff changeset
15 setlocal nomodeline
21499
3a1ed539ae2a Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 446
diff changeset
16
3a1ed539ae2a Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 446
diff changeset
17 " If there are comments they start with #
3a1ed539ae2a Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 446
diff changeset
18 let &commentstring = "# %s"