Release: Docs Improvements and Bug Fixes (#460)
Miscellaneous bug fixes and improvements. docs: various improvements (#445) fix: don't jump to file from reviewer if it doesn't exist (#452) fix: force linewise motion in suggestion keybinding (#454) fix: prevent error after plenary job update (#456) fix: fix JSON on Windows (#458) fix: remove retry logic (#449) fix: check whether comment can be created (#434)
This commit is contained in:
committed by
GitHub
parent
495e64c8bc
commit
3b396a5e6b
@@ -293,6 +293,13 @@ M.jump_to_file = function(tree)
|
||||
u.notify("This comment was not left on a particular location", vim.log.levels.WARN)
|
||||
return
|
||||
end
|
||||
if vim.fn.filereadable(root_node.file_name) == 0 then
|
||||
u.notify(
|
||||
string.format("The file %s for which the comment was made doesn't exist in HEAD.", root_node.file_name),
|
||||
vim.log.levels.WARN
|
||||
)
|
||||
return
|
||||
end
|
||||
vim.cmd.tabnew()
|
||||
local line_number = get_new_line(root_node) or get_old_line(root_node)
|
||||
if line_number == nil then
|
||||
|
||||
Reference in New Issue
Block a user