We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06c709a commit 8625b2fCopy full SHA for 8625b2f
1 file changed
lua/opencode/ui/formatter/tools/apply_patch.lua
@@ -36,9 +36,11 @@ function M.format(output, part)
36
file.relativePath or file.filePath,
37
formatter_utils.get_duration_text(part)
38
)
39
- if config.ui.output.tools.show_output and file.diff then
+
40
+ local patch = file.diff or file.patch
41
+ if config.ui.output.tools.show_output and patch then
42
local file_type = file and util.get_markdown_filetype(file.filePath) or ''
- formatter_utils.format_diff(output, file.diff, file_type)
43
+ formatter_utils.format_diff(output, patch, file_type)
44
end
45
46
0 commit comments