Commit 55566b341d4e756abe6b0096c4a0b0548aae94b0

Stefan Sperling 2018-11-05T16:49:23

make tog always focus a diff view opened from log 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 659b2d4..94f5dcb 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -1563,10 +1563,8 @@ input_log_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;
 			break;