0
0
mirror of https://github.com/vim/vim.git synced 2025-10-17 07:44:28 -04:00
Files
vim/runtime
D. Ben Knoble 81ca9916d2 runtime(html): guard against an existing b:undo_ftplugin var
Filetype plugins should not assume they are the only file to execute on
behalf of a buffer's filetype: other filetypes may use them, and
dotted filetypes may cause multiple to run. When this occurs, they
should _build_ on their respective b:undo_ftplugin settings, not
overwrite each other.

For example, when using a dotted filetype wiki.markdown, the wiki
filetype plugins go first. Then, during the markdown filetype plugins,
the HTML plugin's unconditional assignment to b:undo_ftplugin trashes
any data previously stored there by the wiki filetype.

Follow the pattern elsewhere of assigning or appending conditionally.

closes: #18267

Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-09-14 04:42:25 -04:00
..
2007-05-06 17:22:46 +00:00
2004-07-10 09:47:34 +00:00
2025-08-10 10:28:16 +02:00
2004-06-13 20:20:40 +00:00
2022-06-25 18:01:32 +01:00
2004-06-13 20:20:40 +00:00
2006-05-03 21:26:49 +00:00
2004-06-13 20:20:40 +00:00
2004-06-13 20:20:40 +00:00
2004-06-13 20:20:40 +00:00
2004-06-13 20:20:40 +00:00
2004-06-13 20:20:40 +00:00
2004-06-13 20:20:40 +00:00
2004-06-13 20:20:40 +00:00
2004-06-13 20:20:40 +00:00
2004-06-13 20:20:40 +00:00
2022-06-25 18:01:32 +01:00
2004-06-13 14:44:53 +00:00
2013-11-03 21:14:31 +01:00
2004-06-13 20:20:40 +00:00
2004-06-13 20:20:40 +00:00
2004-06-13 20:20:40 +00:00