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