if incorrect line number for git commit
This commit is contained in:
1 parent
f75c631774
commit
d815813f9b
1 file changed
+4
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user