From 2b42e5d686833a9f45020dfeb8148832d0ad30f7 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Tue, 12 Sep 2006 00:22:42 +0200 Subject: [PATCH] Only split the tree view when the tree view is visible --- tig.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tig.c b/tig.c index 72d57cc..384fe21 100644 --- a/tig.c +++ b/tig.c @@ -2557,7 +2557,7 @@ tree_read(struct view *view, char *text) static bool tree_enter(struct view *view, struct line *line) { - enum open_flags flags = OPEN_DEFAULT; + enum open_flags flags = display[0] == view ? OPEN_SPLIT : OPEN_DEFAULT; char *data = line->data; enum request request; @@ -2592,10 +2592,6 @@ tree_enter(struct view *view, struct line *line) break; case LINE_TREE_FILE: - /* This causes the blob view to become split, and not having it - * in the tree dir case will make the blob view automatically - * disappear when moving to a different directory. */ - flags |= OPEN_SPLIT; request = REQ_VIEW_BLOB; break; -- 2.11.0