fix(git): preserve dispatch and content after jumping back
This commit is contained in:
+2
-3
@@ -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+)$")
|
||||
|
||||
Reference in New Issue
Block a user