feat(diff): Make both codediff/diffview work with the new Jedit

command to allow diffing agianst arbitrary revisions in buffer
This commit is contained in:
NicolasGB
2026-04-26 19:25:17 +02:00
parent 53a3196210
commit 167c206521
4 changed files with 197 additions and 10 deletions
+5 -1
View File
@@ -27,7 +27,11 @@ local function open_revision(rev, path)
return
end
local lines, had_eol = file.get_file_content(change_id, rel_path)
local lines, had_eol, ok_read = file.get_file_content(change_id, rel_path)
if not ok_read then
utils.notify(string.format("Could not read `%s` from `%s`", rel_path, change_id), vim.log.levels.ERROR)
return
end
local buf = vim.api.nvim_create_buf(false, true)