File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,7 @@ M.build_root_draft_note = function(note)
155155 id = note .id ,
156156 root_note_id = note .id ,
157157 file_name = (type (note .position ) == " table" and note .position .new_path or nil ),
158+ old_file_name = (type (note .position ) == " table" and note .position .old_path or nil ),
158159 new_line = (type (note .position ) == " table" and note .position .new_line or nil ),
159160 old_line = (type (note .position ) == " table" and note .position .old_line or nil ),
160161 resolvable = false ,
Original file line number Diff line number Diff line change 110110--- @param line_number number Line number from the discussion node.
111111--- @param new_buffer boolean If true , jump to the NEW SHA.
112112M .jump = function (file_name , old_file_name , line_number , new_buffer )
113+ -- Draft comments don't have `old_file_name` set
114+ old_file_name = old_file_name or file_name
115+
113116 if M .tabnr == nil then
114117 u .notify (" Can't jump to Diffvew. Is it open?" , vim .log .levels .ERROR )
115118 return
You can’t perform that action at this time.
0 commit comments