Commit Diff


commit - 7e18255791187735b9e36951caa895974e4e9ba3
commit + e2e5e9c1caad82813b3d188ca38f274bee502b7d
blob - f9ce0c8c3d60e68ea2f44223560be407416f477a
blob + dbbaf92a90b365370c465e5011b8410a7a8d6c18
--- tog/tog.c
+++ tog/tog.c
@@ -3200,7 +3200,7 @@ open_diff_view_for_commit(struct tog_view **new_view, 
 
 	if (ls != NULL && ls->marked_entry != NULL &&
 	    ls->marked_entry != ls->selected_entry)
-		parent_id = log_view->state.log.marked_entry->id;
+		parent_id = ls->marked_entry->id;
 	else if ((p = STAILQ_FIRST(got_object_commit_get_parent_ids(commit))))
 		parent_id = &p->id;
 	else