From 9ddfcb64bfdb762d12cf9d5a98600c27b6a3a17d Mon Sep 17 00:00:00 2001 From: LosFarmosCTL <80157503+LosFarmosCTL@users.noreply.github.com> Date: Tue, 10 Sep 2024 09:01:25 +0200 Subject: fix(runtime): add remaining missing commentstrings (#30252) --- runtime/ftplugin/swift.lua | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 runtime/ftplugin/swift.lua (limited to 'runtime/ftplugin/swift.lua') diff --git a/runtime/ftplugin/swift.lua b/runtime/ftplugin/swift.lua new file mode 100644 index 0000000000..0f90644f11 --- /dev/null +++ b/runtime/ftplugin/swift.lua @@ -0,0 +1,3 @@ +vim.bo.commentstring = '// %s' + +vim.b.undo_ftplugin = vim.b.undo_ftplugin .. ' | setl commentstring<' -- cgit From 50577534318bbf8c1e22e80a74baa3b20c131ea8 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 23 Sep 2024 16:49:34 +0800 Subject: 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. --- runtime/ftplugin/swift.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/ftplugin/swift.lua') 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<' -- cgit