Commit 4dd27a7290cd557f7db7d0b5d647d00157e7f82f

Stefan Sperling 2022-06-29T15:41:58

fix recent regression in tog where split view was not restored after resize ok jamesk

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tog/tog.c b/tog/tog.c
index 3ec7da1..090dd83 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -774,7 +774,7 @@ view_resize(struct tog_view *view)
 	else
 		ncols = view->ncols + (COLS - view->cols);
 
-	if (view->child && view_is_splitscreen(view->child)) {
+	if (view->child) {
 		view->child->begin_x = view_split_begin_x(view->begin_x);
 		if (view->child->begin_x == 0) {
 			ncols = COLS;