Mercurial > vim
annotate runtime/ftplugin/nix.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 | bbd43982d4eb |
children |
rev | line source |
---|---|
32734
bbd43982d4eb
Add commentstring for nix file format (#12696)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 " Vim filetype plugin |
bbd43982d4eb
Add commentstring for nix file format (#12696)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 " Language: nix |
bbd43982d4eb
Add commentstring for nix file format (#12696)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 " Maintainer: Keith Smiley <keithbsmiley@gmail.com> |
bbd43982d4eb
Add commentstring for nix file format (#12696)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 " Last Change: 2023 Jul 22 |
bbd43982d4eb
Add commentstring for nix file format (#12696)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 |
bbd43982d4eb
Add commentstring for nix file format (#12696)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 " Only do this when not done yet for this buffer |
bbd43982d4eb
Add commentstring for nix file format (#12696)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 if exists("b:did_ftplugin") |
bbd43982d4eb
Add commentstring for nix file format (#12696)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 finish |
bbd43982d4eb
Add commentstring for nix file format (#12696)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 endif |
bbd43982d4eb
Add commentstring for nix file format (#12696)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 |
bbd43982d4eb
Add commentstring for nix file format (#12696)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 " Don't load another plugin for this buffer |
bbd43982d4eb
Add commentstring for nix file format (#12696)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 let b:did_ftplugin = 1 |
bbd43982d4eb
Add commentstring for nix file format (#12696)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
13 |
bbd43982d4eb
Add commentstring for nix file format (#12696)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
14 let b:undo_ftplugin = "setl commentstring< comments<" |
bbd43982d4eb
Add commentstring for nix file format (#12696)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
15 |
bbd43982d4eb
Add commentstring for nix file format (#12696)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
16 setlocal comments=:# |
bbd43982d4eb
Add commentstring for nix file format (#12696)
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
17 setlocal commentstring=#\ %s |