Skip to content

Commit

Permalink
Merge pull request #709 from pastalian/fix-commit-view-open
Browse files Browse the repository at this point in the history
  • Loading branch information
CKolkey authored Aug 6, 2023
2 parents f756cf2 + 80f8b2b commit 23459f0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lua/neogit/status.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,16 @@ local cmd_func_map = function()
local col = cursor_col == 0 and 0 or cursor_col - 1
vim.api.nvim_win_set_cursor(0, { row, col })
end
elseif vim.tbl_contains({ "unmerged", "unpulled", "recent", "stashes" }, section.name) then
elseif
vim.tbl_contains({
"unmerged_pushRemote",
"unpulled_pushRemote",
"unmerged_upstream",
"unpulled_upstream",
"recent",
"stashes",
}, section.name)
then
if M.commit_view and M.commit_view.is_open then
M.commit_view:close()
end
Expand Down

0 comments on commit 23459f0

Please sign in to comment.