From 10c6cb0c5fce3628932f9695e25d44537fd1de60 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Fri, 4 Apr 2008 22:17:24 +0200 Subject: [PATCH] Avoid splitting the view when navigating stage view in full screen --- tig.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tig.c b/tig.c index 4dd8245..391d56f 100644 --- a/tig.c +++ b/tig.c @@ -4082,6 +4082,7 @@ status_enter(struct view *view, struct line *line) char newpath[SIZEOF_STR] = ""; char *info; size_t cmdsize = 0; + enum open_flags split; if (line->type == LINE_STAT_NONE || (!status && line[1].type == LINE_STAT_NONE)) { @@ -4154,7 +4155,8 @@ status_enter(struct view *view, struct line *line) die("line type %d not handled in switch", line->type); } - open_view(view, REQ_VIEW_STAGE, OPEN_RELOAD | OPEN_SPLIT); + split = view_is_displayed(view) ? OPEN_SPLIT : 0; + open_view(view, REQ_VIEW_STAGE, OPEN_RELOAD | split); if (view_is_displayed(VIEW(REQ_VIEW_STAGE))) { if (status) { stage_status = *status; -- 2.32.0.93.g670b81a890