From 0773ae0035ba0f29e2d63fb38370afe9ca5dab5e Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Tue, 7 Oct 2008 12:23:48 +0200 Subject: [PATCH] Make OPEN_REFRESH imply OPEN_NOMAXIMIZE ... so the main view keeps its dimension when refreshing with the diff view open. --- tig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tig.c b/tig.c index 6e32e22..b896b92 100644 --- a/tig.c +++ b/tig.c @@ -2456,7 +2456,7 @@ open_view(struct view *prev, enum request request, enum open_flags flags) bool backgrounded = !!(flags & OPEN_BACKGROUNDED); bool split = !!(flags & OPEN_SPLIT); bool reload = !!(flags & (OPEN_RELOAD | OPEN_REFRESH)); - bool nomaximize = !!(flags & OPEN_NOMAXIMIZE); + bool nomaximize = !!(flags & (OPEN_NOMAXIMIZE | OPEN_REFRESH)); struct view *view = VIEW(request); int nviews = displayed_views(); struct view *base_view = display[0]; @@ -4731,7 +4731,7 @@ stage_request(struct view *view, enum request request, struct line *line) if (stage_line_type == LINE_STAT_UNTRACKED) opt_pipe = fopen(stage_status.new.name, "r"); - open_view(view, REQ_VIEW_STAGE, OPEN_REFRESH | OPEN_NOMAXIMIZE); + open_view(view, REQ_VIEW_STAGE, OPEN_REFRESH); return REQ_NONE; } -- 2.30.2