diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-09-23 16:49:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-23 16:49:34 +0800 |
commit | 50577534318bbf8c1e22e80a74baa3b20c131ea8 (patch) | |
tree | 7046e252f4d7343e0bc8a50e284ecff839ad7008 /runtime/ftplugin/c.lua | |
parent | 423176db565cc182dac8b9562ccb23605f96fa2d (diff) | |
download | rneovim-50577534318bbf8c1e22e80a74baa3b20c131ea8.tar.gz rneovim-50577534318bbf8c1e22e80a74baa3b20c131ea8.tar.bz2 rneovim-50577534318bbf8c1e22e80a74baa3b20c131ea8.zip |
fix(runtime): treat b:undo_ftplugin consistently in Lua ftplugins (#30473)
- Don't assume b:undo_ftplugin is set when first modifying it.
- Don't assume b:undo_ftplugin already contains some resetting.
Diffstat (limited to 'runtime/ftplugin/c.lua')
-rw-r--r-- | runtime/ftplugin/c.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ftplugin/c.lua b/runtime/ftplugin/c.lua index 6e68df18d0..09e286201b 100644 --- a/runtime/ftplugin/c.lua +++ b/runtime/ftplugin/c.lua @@ -11,4 +11,4 @@ if vim.fn.isdirectory('/usr/include') == 1 then ]]) end -vim.b.undo_ftplugin = vim.b.undo_ftplugin .. ' | setl path<' +vim.b.undo_ftplugin = (vim.b.undo_ftplugin or '') .. '\n setl commentstring< define< include< path<' |