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/swift.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/swift.lua')
-rw-r--r-- | runtime/ftplugin/swift.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ftplugin/swift.lua b/runtime/ftplugin/swift.lua index 0f90644f11..89ab42ef54 100644 --- a/runtime/ftplugin/swift.lua +++ b/runtime/ftplugin/swift.lua @@ -1,3 +1,3 @@ vim.bo.commentstring = '// %s' -vim.b.undo_ftplugin = vim.b.undo_ftplugin .. ' | setl commentstring<' +vim.b.undo_ftplugin = (vim.b.undo_ftplugin or '') .. '\n setl commentstring<' |