fix(git): preserve dispatch and content after jumping back

This commit is contained in:
2026-05-08 01:46:43 +02:00
parent 4649b803ab
commit 867b5c2a2e
4 changed files with 78 additions and 12 deletions
+2 -3
View File
@@ -375,13 +375,12 @@ end
---@return boolean dispatched
function M.open_under_cursor()
local s = repo.state()
if not s then
local r = repo.resolve()
if not r then
return false
end
local line = vim.api.nvim_get_current_line()
local r = s.repo
local sha = line:match("^commit (%x+)$")
or line:match("^parent (%x+)$")