mirror of
https://github.com/zoriya/jj.nvim.git
synced 2026-08-13 14:48:28 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user