commit - cc3c9aac74c52266b5bfd68dbc942f539e3634c7
commit + 842167bf7e193c14bfd2cf252f5798dbf5808198
blob - 4688ed6d8f3dd0e133723353d0f6b9e6e67a0665
blob + c0bad352ab94e336f2a65e5b084716396d6f3ddf
--- tog/tog.c
+++ tog/tog.c
}
static struct tog_view *
-open_view(void)
+open_view(int nlines, int ncols, int begin_y, int begin_x)
{
struct tog_view *view = malloc(sizeof(*view));
if (view == NULL)
return NULL;
- view->window = newwin(0, 0, 0, 0);
+ view->window = newwin(nlines, ncols, begin_y, begin_x);
if (view->window == NULL) {
close_view(view);
return NULL;
goto done;
}
- view = open_view();
+ view = open_view(0, 0, 0, 0);
if (view == NULL) {
err = got_error_from_errno();
goto done;
err = NULL;
}
- view = open_view();
+ view = open_view(0, 0, 0, 0);
if (view == NULL) {
err = got_error_from_errno();
goto done;
if (error)
goto done;
- view = open_view();
+ view = open_view(0, 0, 0, 0);
if (view == NULL) {
error = got_error_from_errno();
goto done;
goto done;
SIMPLEQ_INSERT_HEAD(&blamed_commits, blamed_commit, entry);
- view = open_view();
+ view = open_view(0, 0, 0, 0);
if (view == NULL) {
err = got_error_from_errno();
goto done;
break;
if (pobj == NULL && obj == NULL)
break;
- diff_view = open_view();
+ diff_view = open_view(0, 0, 0, 0);
if (diff_view == NULL) {
err = got_error_from_errno();
break;
goto done;
}
- view = open_view();
+ view = open_view(0, 0, 0, 0);
if (view == NULL) {
err = got_error_from_errno();
goto done;