aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/home
diff options
context:
space:
mode:
authorLibravatar sommerfeld <[email protected]>2026-04-17 10:52:58 +0100
committerLibravatar sommerfeld <[email protected]>2026-04-17 10:52:58 +0100
commit525f74aadd38236b4e5ced02868bec9369b5ab96 (patch)
tree809cf654a206bc31209e4cd43180256d6032c186 /home
parentba1f927a24e5fe6bc88626da353c879b68efb509 (diff)
downloaddotfiles-525f74aadd38236b4e5ced02868bec9369b5ab96.tar.gz
dotfiles-525f74aadd38236b4e5ced02868bec9369b5ab96.tar.bz2
dotfiles-525f74aadd38236b4e5ced02868bec9369b5ab96.zip
fix(nvim): guard nil concatenation in gitcommit ftplugin
vim.b.undo_ftplugin may be nil when no upstream ftplugin sets it, causing a nil concatenation error.
Diffstat (limited to 'home')
-rw-r--r--home/.config/nvim/after/ftplugin/gitcommit.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/home/.config/nvim/after/ftplugin/gitcommit.lua b/home/.config/nvim/after/ftplugin/gitcommit.lua
index 9095ee4..e670035 100644
--- a/home/.config/nvim/after/ftplugin/gitcommit.lua
+++ b/home/.config/nvim/after/ftplugin/gitcommit.lua
@@ -1,3 +1,3 @@
vim.wo.spell = true
-vim.b.undo_ftplugin = vim.b.undo_ftplugin .. "|setlocal spell<"
+vim.b.undo_ftplugin = (vim.b.undo_ftplugin or "") .. "|setlocal spell<"
vim.cmd([[match ErrorMsg /\%1l.\%>50v/]])