From a006db634ffcbb1c3fa7e9a5f109b162d72aeea6 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Mon, 22 May 2006 01:26:22 +0200 Subject: [PATCH] Only resize the display when actually required --- tig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tig.c b/tig.c index 4abb0bf..4ab9434 100644 --- a/tig.c +++ b/tig.c @@ -1285,7 +1285,8 @@ open_view(struct view *prev, enum request request, enum open_flags flags) display[current_view] = view; } - resize_display(); + if (nviews == 1 || display[1] == NULL) + resize_display(); if (split && prev->lineno - prev->offset >= prev->height) { /* Take the title line into account. */ -- 2.30.2