summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9f41488)
raw | patch | inline | side by side (parent: 9f41488)
author | Jonas Fonseca <fonseca@diku.dk> | |
Mon, 22 May 2006 22:19:27 +0000 (00:19 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Mon, 22 May 2006 22:19:27 +0000 (00:19 +0200) |
tig.c | patch | blob | history |
index 6f716f50f98379053d2ffcd7c13d0f8478715ef3..4a650313ebc954354744792877965bf998b715bf 100644 (file)
--- a/tig.c
+++ b/tig.c
bool reload = !!(flags & OPEN_RELOAD);
struct view *view = VIEW(request);
int nviews = displayed_views();
+ struct view *base_view = display[0];
if (view == prev && nviews == 1 && !reload) {
report("Already in %s view", view->name);
display[current_view] = view;
}
- if (nviews == 1 || display[1] == NULL)
+ /* Resize the view when switching between split- and full-screen,
+ * or when switching between two different full-screen views. */
+ if (nviews != displayed_views() ||
+ (nviews == 1 && base_view != display[0]))
resize_display();
if (split && prev->lineno - prev->offset >= prev->height) {