fix!(git_status): keep picker open if pwd is clean (#3415)

Prevents picker from flickering open and closed.
This commit is contained in:
xieyonn
2025-02-25 00:40:24 +08:00
committed by GitHub
parent 589910694b
commit 814f102cd1

View File

@@ -407,9 +407,8 @@ git.status = function(opts)
if count == 0 and prompt == "" then if count == 0 and prompt == "" then
utils.notify("builtin.git_status", { utils.notify("builtin.git_status", {
msg = "No changes found", msg = "No changes found",
level = "ERROR", level = "INFO",
}) })
actions.close(self.prompt_bufnr)
end end
end, end,
}, },