Commit 34095730b1d2ffc72cf93ffd32288f771bb2cca0

Stefan Sperling 2018-10-23T00:22:48

make backspace key work if 'tog log' runs in a child view

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tog/tog.c b/tog/tog.c
index f8c398a..898f650 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -1578,7 +1578,7 @@ input_log_view(struct tog_view **new_view, struct tog_view **dead_view,
 					*new_view = lv;
 				else {
 					view_set_child(view->parent, lv);
-					*dead_view = view;
+					*focus_view = lv;
 				}
 				return NULL;
 			}