Commit d6144aad937a5dabb9f3641d04bf2f4c14b3b93b

Stefan Sperling 2018-10-22T21:50:00

fix auto-update of 'tog blame' display

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/tog/tog.c b/tog/tog.c
index 26290c7..3c609de 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -2216,6 +2216,10 @@ blame_cb(void *arg, int nlines, int lineno, struct got_object_id *id)
 	err = draw_blame(a->view, a->commit_id, a->f, a->path,
 	    a->lines, a->nlines, 0, *a->selected_line, a->first_displayed_line,
 	    a->last_displayed_line, a->eof, a->view->nlines);
+	if (!err) {
+		update_panels();
+		doupdate();
+	}
 done:
 	errcode = pthread_mutex_unlock(&tog_mutex);
 	if (errcode)