if incorrect line number for git commit

This commit is contained in:
sgraves committed 2026-08-25 12:28:22 +00:00
1 parent f75c631774
commit d815813f9b
1 file changed
+4 -1
+4 -1
View File
@@ -28,8 +28,11 @@ local group =
local pos = vim.fn.line('\'"')
if
pos >= 1 and pos <= vim.fn.line("$") and vim.bo.filetype ~= "commit" and
vim.bo.filetype ~= "gitcommit" and vim.bo.filetype ~= "rebase"
vim.bo.filetype ~= "gitcommit" and
vim.bo.filetype ~= "fugitive" and
vim.bo.filetype ~= "rebase"
then
print("oops", pos, vim.bo.filetype)
vim.cmd('normal! g`"')
end
end