Commit Diff


commit - 842167bf7e193c14bfd2cf252f5798dbf5808198
commit + 97ddc14653c4e9867c310b35fea2cc60193d1ed0
blob - c0bad352ab94e336f2a65e5b084716396d6f3ddf
blob + 81b2d4c4fd744800b52aedc425c21e17b144f728
--- tog/tog.c
+++ tog/tog.c
@@ -85,6 +85,7 @@ static struct tog_cmd tog_commands[] = {
 struct tog_view {
 	WINDOW *window;
 	PANEL *panel;
+	int nlines, ncols, begin_y, begin_x;
 };
 
 static const struct got_error *
@@ -116,6 +117,10 @@ open_view(int nlines, int ncols, int begin_y, int begi
 	if (view == NULL)
 		return NULL;
 
+	view->nlines = nlines;
+	view->ncols = ncols;
+	view->begin_y = begin_y;
+	view->begin_x = begin_x;
 	view->window = newwin(nlines, ncols, begin_y, begin_x);
 	if (view->window == NULL) {
 		close_view(view);