Commit Diff


commit - a3e45a89bb612430144db6128552dd438a11320d
commit + e02b19c81d76f7b7764add345d87332e1691d0b3
blob - 64a7ea50ec8c85ec1b41753c0b4665647cf0ca04
blob + 5bd709ec2e556deceee65c5e7cfca07ea247bd72
--- tog/tog.c
+++ tog/tog.c
@@ -3204,7 +3204,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