fix: missing curl error message (#2527)

This commit is contained in:
yetone
2025-07-24 16:03:15 +08:00
committed by GitHub
parent ca1271c996
commit 7af303b421
2 changed files with 51 additions and 6 deletions

View File

@@ -790,7 +790,7 @@ For example:
local parent_dir = vim.fn.fnamemodify(abs_path, ":h")
--- check if the parent dir is exists, if not, create it
if vim.fn.isdirectory(parent_dir) == 0 then vim.fn.mkdir(parent_dir, "p") end
vim.api.nvim_buf_call(bufnr, function() vim.cmd("noautocmd write") end)
vim.api.nvim_buf_call(bufnr, function() vim.cmd("noautocmd write!") end)
if session_ctx then Helpers.mark_as_not_viewed(input.path, session_ctx) end
on_complete(true, nil)
end, { focus = not Config.behaviour.auto_focus_on_diff_view }, session_ctx, M.name)