Commit Diff


commit - 268ae8f5485b1c5f1cc302565cb7e3fc96d03bb6
commit + dd04dd3fa26d7797dbf1c6e0afd6d17db799810e
blob - 20a468b473f5604d88c51f292c19091768988414
blob + 72930dee6fbdc15edfa1b463dc48c81de274a127
--- tog/tog.c
+++ tog/tog.c
@@ -268,6 +268,9 @@ view_open(int nlines, int ncols, int begin_y, int begi
 	if (view == NULL)
 		return NULL;
 
+	if (begin_x == 0 && parent && parent->ncols - 80 > 10)
+		begin_x = parent->ncols - 80;
+
 	view->parent = parent;
 	view->type = type;
 	view->lines = LINES;