Commit Diff


commit - 4dd27a7290cd557f7db7d0b5d647d00157e7f82f
commit + c71ed39a66ed8e3aeaa13e76fce179b7bf6efec6
blob - 090dd83287c9084d96abb2895eebbfab7816bdbc
blob + 89606b682848b7bf39863245a9c037c8a65e9935
--- tog/tog.c
+++ tog/tog.c
@@ -775,7 +775,8 @@ view_resize(struct tog_view *view)
 		ncols = view->ncols + (COLS - view->cols);
 
 	if (view->child) {
-		view->child->begin_x = view_split_begin_x(view->begin_x);
+		if (view->child->focussed)
+			view->child->begin_x = view_split_begin_x(view->begin_x);
 		if (view->child->begin_x == 0) {
 			ncols = COLS;