Commit 51c68690d59d65748712cc9a7e2dfc9bffd8fe23

Stefan Sperling 2018-11-07T04:54:29

make tog always focus a diff view opened from blame view

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/tog/tog.c b/tog/tog.c
index 94f5dcb..571b5ab 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -2672,10 +2672,8 @@ input_blame_view(struct tog_view **new_view, struct tog_view **dead_view,
 					view_close(diff_view);
 					break;
 				}
-				if (!view_is_splitscreen(diff_view)) {
-					*focus_view = diff_view;
-					view->child_focussed = 1;
-				}
+				*focus_view = diff_view;
+				view->child_focussed = 1;
 			} else
 				*new_view = diff_view;
 			if (pobj) {