summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f8185f0)
raw | patch | inline | side by side (parent: f8185f0)
author | Jonas Fonseca <fonseca@diku.dk> | |
Fri, 11 Mar 2011 04:30:35 +0000 (23:30 -0500) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 17 Mar 2011 01:21:01 +0000 (21:21 -0400) |
tig.c | patch | blob | history |
index 0f9394971629665bec78ae24e21fd6a3b83ffcf7..8bed28e8b72fede7d1d476e571b7a00e03b2d9f7 100644 (file)
--- a/tig.c
+++ b/tig.c
}
static void
-maximize_view(struct view *view)
+maximize_view(struct view *view, bool redraw)
{
memset(display, 0, sizeof(display));
current_view = 0;
display[current_view] = view;
resize_display();
- redraw_display(FALSE);
- report("");
+ if (redraw) {
+ redraw_display(FALSE);
+ report("");
+ }
}
update_view_title(prev);
}
} else {
- /* Maximize the current view. */
- memset(display, 0, sizeof(display));
- current_view = 0;
- display[current_view] = view;
- resize_display();
+ maximize_view(view, FALSE);
}
/* No prev signals that this is the first loaded view. */
case REQ_MAXIMIZE:
if (displayed_views() == 2)
- maximize_view(view);
+ maximize_view(view, TRUE);
break;
case REQ_OPTIONS:
* view itself. Parents to closed view should never be
* followed. */
if (view->prev && view->prev != view) {
- maximize_view(view->prev);
+ maximize_view(view->prev, TRUE);
view->prev = view;
break;
}
switch (request) {
case REQ_ENTER:
if (view_is_displayed(view) && display[0] != view)
- maximize_view(view);
+ maximize_view(view, TRUE);
open_view(view, REQ_VIEW_DIFF, flags);
break;
case REQ_REFRESH: